Bug #21536 Version Retired

Relationships: Single variable output of URLs not working - needs to be done through tag-pair

Version: 2.10.2 Reporter: JCOGS Design

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

When referencing an Assets field via relationships, attempts to get the value using single variable syntax fails.  Thus this code:

{new_slider_selector}
                                item-{new_slider_selector:entry_id}
                                {new_slider_selector:slider_image_url}
                                {new_slider_selector:slider_short_text_title}
{/new_slider_selector}

generates the following output:

item-1296
0
Some Text
  • You can get the URL value by getting it via a tag-pair, but this is a bit cumbersome for a single value.  Thus

    {new_slider_selector}
                                    item-{new_slider_selector:entry_id}
                                    {new_slider_selector:slider_image_url}{url}{/new_slider_selector:slider_image_url}
                                    {new_slider_selector:slider_short_text_title}
    {/new_slider_selector}

    produces the correct output.

     

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

ExpressionEngine News!

#eecms, #events, #releases