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.

reverse related entries in 1.6

December 17, 2010 10:21am

Subscribe [2]
  • #1 / Dec 17, 2010 10:21am

    Eastwood Design

    605 posts

    I have 2 weblog products and artists

    I enter individual products into the weblog and add a relationship field that creates a relationship to the artist.

    Now I have a template called artist_detail that displays the weblog entry for the artist, and I want to display all the products that are entered in the product weblog that have been related to the artist.

    I assume I need some sort of reverse relationship.

    I tried the following but no luck:

    {exp:weblog:entries orderby="artist_last_name" sort="asc" limit="1" weblog="artists" category="5" dynamic="on" disable="member_data|trackbacks"}
    
    <h3>{artist_first_name} {artist_last_name}</h3>
    <p>{artist_bio}</p>
    
    <p>{reverse_related_entries weblog="products" status="open" sort="desc" orderby="title" limit="10"}<br />
    <!--START PRODUCT--></p>
    
    <p>{exp:ed_imageresizer<br />
        image="{product_image}"<br />
        default=""/images/site/image_coming_soon.jpg"<br />
        maxWidth="90"<br />
     maxHeigth="90"<br />
    cropratio="1:1"<br />
        class="borderimg"<br />
        alt="Image description"} <br />
    <!--END PRODUCT-->{/reverse_related_entries}</p>
    
    <p>{/exp:weblog:entries}

    SOLVED: sorry to bother you
    I removed weblog=“products” from

    {reverse_related_entries weblog="products" status="open" sort="desc" orderby="title" limit="10"}
  • #2 / Dec 17, 2010 4:24pm

    Sue Crocker

    26054 posts

    Glad you figured out what the problem is.. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases