• I want to add a new section or div to the single event page template with a title for the section and two custom attributes with labels. The entire section would be conditional based on whether the event has a presentation or not. I can figure out the html mostly except I don’t know how to make the section conditional. So like this:

    PRESENTATION

    Title: #_ATT{Presentation Title}

    Speaker(s): #_ATT{Speakers}

    There are not really any examples of how to add even non-conditional custom attributes to the templates. How can I do this? Seems like EM should have a conditional placeholder for any custom attributes you want to add to the templates, but I have not found one.

    • This topic was modified 10 months, 1 week ago by onojane.
    • This topic was modified 10 months, 1 week ago by onojane.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Here you can find an example of how to add a conditional placeholder for a custom attribute: https://www.ads-software.com/support/topic/conditional-placeholders-for-custom-event-attributes/

    Thread Starter onojane

    (@onojane)

    I did see that post and tried the snippet. However I could not get it to work and I think it would only control whether the custom attributes were displayed and not what I want which is the entire section with a header and labels. However I thought of another way that should work for me to make this section conditional. I can insert my section surrounded by conditional tag or category placeholders in the single event page format box in settings. That seems to work well. Here is an example:

    {has_category_meetings}
    <div>
    	<h3>Presentation</h3>
    	<p><strong>Title:</strong> #_ATT{Presentation Title}<br>
    	<strong>Speaker(s):</strong> #_ATT{Speakers}</p>
    </div>
    {/has_category_meetings}
    • This reply was modified 10 months, 1 week ago by onojane.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional custom attributes’ is closed to new replies.