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.

Related Entries and custom field data not displaying.

February 20, 2012 7:56pm

Subscribe [2]
  • #1 / Feb 20, 2012 7:56pm

    Charming Nerd

    196 posts

    This one has be baffled. I have a template with 2 channels tags. The second one displays related entries. But when I use related_categories_mode=“yes” there is one particular custom field that doesn’t work. It just display the tags instead of the data.

    When I remove the related categories tag and switch dynamic to ‘no’, the data comes out fine.

    All my other fields work fine.

    This is just simple text input field. Nothing special.

    Here is my code:

    {exp:channel:entries channel="trip_type_pages" limit="1" status="open|Archived" disable="comments|trackbacks"}
    
         <h1>{title} </h1>
    
    {/exp:channel:entries}
    
    
    {exp:channel:entries channel="trips" dynamic="yes" related_categories_mode="yes" status="open" orderby="trip_dates" sort="asc" disable="comments|trackbacks"}
    
     {title}
     {trip_arrive}/{trip_depart}
     
                        
    {/exp:channel:entries}

    Here is the output:


    http://arcc.clientwebreview.com:9999/service-adventures/

     

     

     

     

  • #2 / Feb 20, 2012 9:32pm

    Bhashkar Yadav

    727 posts

    In EE .(JavaScript must be enabled to view this email address) its mentioned that

    Important Note: This parameter is intended for use only when you are using the channel tag within “single entry” pages. Single entry pages are ones that show only a single entry, specified by the ID number or URL Title in the URL.


    can you tell the actual purpose of using related_categories_mode, if there is an alternative for it.

  • #3 / Feb 20, 2012 10:10pm

    Charming Nerd

    196 posts

    I think I am using it that way, aren’t I? That is point. I am displaying a page e.g /service-adventures I am displaying the contents of that page with the trip_type_pages channel tag, and then listing entries from another channel below. It works fine except that one text field.

  • #4 / Mar 02, 2012 6:31pm

    Charming Nerd

    196 posts

    Figured it out! There is a parameter I didn’t know about.

    custom_fields=“yes”
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases