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.

Problem With Related Entries

November 10, 2008 8:43am

Subscribe [1]
  • #1 / Nov 10, 2008 8:43am

    fearless_shultz

    7 posts

    Hi All,

    I have a weblog which contains the names of manufacturers and in order to be able to select the name of a manufacturer from a drop down list while making an entry in another weblog I have set up a custom relationship field which is populated by the manufacturers weblog. When creating a new entry in the second weblog I get the drop down populated as I wanted so no problems there, however when trying to view any entries through a template I just get a 0 where the text should be.

    The code I am using to try and display the content from a weblog entry is as follows:

    {exp:weblog:entries weblog="vehicle" orderby="date" limit="15"}

    {related_entries id="manufacturer"}
    <h1>{manufacturer}</h1>
    {/related_entries}

  • #2 / Nov 10, 2008 11:01am

    Robin Sowell

    13255 posts

    Inside the related_entries tag, you’ll want to use custom fields from the ‘manufacturer’ weblog.  May/may not be the same field group as the vehicle weblog.  If it’s the same, {manufacturer} will be a number.  What you probably want is {title}. 

    That help?  If you’re using manufacturer as the related_entries id, it’s definitely not the field you want to display inside the tag.

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

ExpressionEngine News!

#eecms, #events, #releases