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.

Relationship field issue after updating to 2.9.0

August 08, 2014 9:37pm

Subscribe [1]
  • #1 / Aug 08, 2014 9:37pm

    timdov

    3 posts

    Hello,

    This code was working well in the EE 2.8.1, but stopped working correctly in 2.9.0:

    {exp:channel:entries channel="services" limit="1" require_entry="yes"}
    
     {if last_segment == 'case-studies'}
     <ol class="caselist">
     {case_studies_body}
            <li><a href="http://{case_studies_relationship_field:url_title}/">{case_studies_relationship_field:title}</a></li>
        {/case_studies_body}
     </ol>
    
    
    {if:elseif last_segment == '{case_studies_relationship_field:url_title}'}
            {case_studies_relationship_field limit="1"}
            <h3>{case_studies_relationship_field:title}</h3>
    <p>        {case_studies_relationship_field:case_studies_body}<br />
      {/case_studies_relationship_field}</p>
    
    <p>{/exp:channel:entries}


    It’s displaying case_study entry related to the selected service. But it’s working only for the first entry in the relationship field, doesn’t work for the second, third, etc gives 404 error.  What could be the reason?

    I’d appreciate any help.

    Thanks!

    Tim

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

ExpressionEngine News!

#eecms, #events, #releases