• Resolved Stefancom

    (@stefancom)


    Hey

    I am facing a really strange issue. I am editing a Pod Template, and what is happening, is that there is one specific field that I can display:

    {@venue_or_series.venue_website}

    So, it is the field venue_website, from the venue_or_series Pod (a different Pod than the Template I am editing right now).

    But, when combined with [if], like this:

    [if venue_or_series.venue_website]
    {@venue_or_series.venue_website}[/if]

    (so that the field will only be displayed in case it has content) it will not be displayed. So strange, no? So, the term obviously works, and yet it is not showing.

    What explanation could there be? Is venue_or_series.venue_website too long a term for the [if] condition?

    Best,
    Stefan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    You can’t use traversed fields in the if Template tag. If you need that, you need to each through venue_or_series and then if those fields inside that relationship loop. Or you need to nest your if statements.

    Thread Starter Stefancom

    (@stefancom)

    Yes, of course! Thank you very much, Jim!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[if] tag not working’ is closed to new replies.