0

I have a relationship field in a grid field which is not outputting any data. But, it should.

{service_types}

    <div class="column">

        <a href="{service_types:url:url_title}">
            <img src="{service_types:src}" alt="{service_types:alt_text}">
        </a>

    </div>

{/service_types}

{service_types} is the grid field and {service_types:url:url_title} is the relationship field. This works in EE2, but not EE3 seemingly?

I have checked that the target entries are open and not have silly expired or far future dates etc etc.

1 Answer 1

0

Right, looks like it has to be in a tag pair.

{service_types}

<div class="column">

    <a href="{service_types:url}{service_types:url:url_title}{/service_types:url}">
        <img src="{service_types:src}" alt="{service_types:alt_text}">
    </a>

</div>

{/service_types}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.