2

Is there any reason this conditional wouldn't work?

{standard_page_events var_prefix="cat"}
    {cat:event_category_description}
    {exp:playa:coparents var_prefix="event" channel="events" child_id="{cat:entry_id}"}
        {if {event:count} == 1}<div class="banded"></div><hr>{/if}
    {/exp:playa:coparents}
{/standard_page_events}
1
  • 2
    Try {event:if count == 1}. May 1, 2013 at 16:42

3 Answers 3

3

Brandon's solution worked great! Thanks!

{event:if count == 1}
1

Ian's suggestion worked great for me. Here was my working code

{if '{thirdorder:static_map_3rd_order}'} 
    <img src="{thirdorder:static_map_3rd_order}" alt="{thirdorder:title}" style="padding:10px;" width="100%"/>
{/if} 
0

You may need to wrap it in quotes. Try this:

{if '{event:count}' == '1'}<div class="banded"></div><hr>{/if}

Your Answer

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

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