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.

Parent » Child » Grandchild hierarchies?

September 14, 2010 7:21am

Subscribe [2]
  • #1 / Sep 14, 2010 7:21am

    Wayne Smallman

    176 posts

    Hi guys!

    Right now, I have a parent ยป child hierarchy in place, whereby parent Entries in the top navigation are linked via a Relationship to child Entries listed in their respective menus, as you can see from the development website.

    I’d like to add a third level, which I suppose we could refer to as grandchildren, whereby certain Entries are linked via a Relationship to grandchildren Entries.

    For instance, this is the code for the top navigation:

    <ul id="topnav">
        {exp:channel:entries channel="sections" style="nested" dynamic="no" sort="asc"}
        <li><a href="http://{path=sections/index}/{url_title}" class="{section_tag_class}">{title}</a>
            <div class="sub">
                <ul>
            {reverse_related_entries orderby="title"}
                    <li><a href="http://{path=products/index}/{url_title}">{title}</a></li>
            {/reverse_related_entries}
                </ul>
            </div>
        </li>
        {/exp:channel:entries}
    </ul>

    I know from Mike Boyink that this is doable, so I just need to know if I’ve got the logic right, and what the code might look like.

  • #2 / Sep 14, 2010 10:05am

    rchampagne

    212 posts

    I am doing something similar, but cannot get the reverse related entries to show up at all. is there some parameter that I need to make sure I have in the entries tag pair to make it work?

    the related entries works fine, but the reverse wont…

  • #3 / Sep 14, 2010 12:33pm

    rchampagne

    212 posts

    got it. forgot to check for different statuses… 😊

  • #4 / Sep 14, 2010 12:38pm

    Wayne Smallman

    176 posts

    Just to be clear, this thread isn’t yet resolved, just hijacked.

  • #5 / Sep 17, 2010 5:41pm

    rchampagne

    212 posts

    i apologize for that.

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

ExpressionEngine News!

#eecms, #events, #releases