ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Embedding reverse related entries

September 07, 2011 12:55pm

Subscribe [2]
  • #1 / Sep 07, 2011 12:55pm

    louisk

    40 posts

    Hi All, I’m having trouble embedding reverse related entries.

    I have an Art Gallery website with a channel ‘artists’, and a channel ‘artworks’.
    Every artwork has a related entry field relating to an artist.

    What I want to achieve is to display all (related) artworks belonging to a specific artist on the artist’s page.

    So, I have a template displaying information on an Artist with his biography and stuff.
    I would like to embed a template that has the code to display the related artworks.

    What code would I need?

    I can achieve this using reverse_related_entries without embedding, however, I have run into some errors with the code inside the reverse entries tag, that seem to be related to the fact that you can only go a certain amount of levels (depth) back…, hence, I have to use embedded templates (according to Googling)

  • #2 / Sep 08, 2011 11:08am

    Mark Bowen

    12637 posts

    Hi louisk,

    Hi All, I’m having trouble embedding reverse related entries.

    I have an Art Gallery website with a channel ‘artists’, and a channel ‘artworks’.
    Every artwork has a related entry field relating to an artist.

    What I want to achieve is to display all (related) artworks belonging to a specific artist on the artist’s page.

    So, I have a template displaying information on an Artist with his biography and stuff.
    I would like to embed a template that has the code to display the related artworks.

    What code would I need?

    I can achieve this using reverse_related_entries without embedding, however, I have run into some errors with the code inside the reverse entries tag, that seem to be related to the fact that you can only go a certain amount of levels (depth) back…, hence, I have to use embedded templates (according to Googling)

    Could you let me know what errors you are having here as you should be able to do what you want here with the standard reverse relationships tag if I’m understanding you correctly with what you’re trying to do.

    I’m not too sure what you mean by only being able to go a certain amount of depths back?

    If you could clarify exactly what you are expecting to see output on your Artists page then I’ll see what I can come up with for you.

    Thanks.

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases