Community

How to get back links with entity reference module?

I have had good success with Entity reference module to make create references from one node to other nodes, by simply adding an entity reference field to my nodes, so for example. "The dog likes red and yellow" links to:

What I'd really like to do is also be able to go the other way around, so that if a person goes to the page for, say "dog", they get to see each of the sentences in which it is used, e.g. the "dog" page would link me to the following pages:

The entity reference module hints that this is possible:

Integration with Views (for both forward and backward references)

How do I create a view with the back links?

Comments

If you are making a view of

If you are making a view of the 'dog' content type look under relationships (advanced, rightmost column). Say your field is Other (field_other). Look for a relationship that's like

Entity Reference: Referenced Entity
A bridge to the Node entity that is referenced via field_other
Entity Reference: Referencing entity
A bridge to the Node entity that is referencing Content via field_other

The first would be used for the dog node, the 2nd for other nodes to get the dog info.
Also look into Entity Views Attachment http://drupal.org/project/eva for other ways to tie it in.

I'm unique, just like everybody else.
If I helped, please pay it forward, backward or sidelong.

Thanks!

Thank you NotGoddess!

With your comment above together with the following videos I managed to sort it out:

Now, for example, I have the backlinks view:

which are the backlinks for:

Anybody have an idea how I now make that backlinks view display when showing the node?

drupalshrek
Maintainer of the VChess module visible in use at chess website Chesspos.com

follow

I'll test the above settings and give testing result

Practice what you preach >> www.jawi-online.nl >> Full service internet bureau >>

How I made backlinks view display

I can now answer the question I was asking above:

Anybody have an idea how I now make that backlinks view display when showing the node?

You will see that in a node such as http://lingopolo.com/thai/word/sea-view there is an "Examples of usage" field which contains the backlinks. This is done by adding a new field to the node whose field_type is views. The view is then made to point to the view of backlinks.

drupalshrek
Maintainer of the VChess module visible in use at chess website Chesspos.com

nobody click here