Support » Plugin: Events Manager » Conditional placeholder for event attributes

  • Resolved steveja7

    (@steveja7)


    I want to display a custom attribute in my event only if it exists. I see how this can be done for event related placeholders, but not custom attributes.

    For example, I want to check for the existence of the #_ATT{Speaker} custom attribute the same way I am checking for the existence of the location as shown below. Can this be done?

    <li>#_EVENTLINK<ul><li>#_EVENTDATES</li>
    {has_location}<li><b>Location: </b>#_LOCATIONTOWN</li>{/has_location}
    <li><b>Speaker:</b><br />#_ATT{Speaker}</li>
    <li><b>Sponsor:</b><br />#_ATT{Sponsor}</li></ul></li>
    • This topic was modified 2 years, 5 months ago by steveja7.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditional placeholder for event attributes’ is closed to new replies.