Need Help Understanding How to Hide a Custom Attribute
-
Hello all – I have successfully been able to follow instructions provided in the documentation for adding custom attributes to a new event form but need to be able to add a conditional placeholder to three of my custom attributes.
I have created the following custom attributes and added them to the events attribute box here Events > Settings > General > Pages:
#_ATT{Open To The Public?}{Yes|No|} #_ATT{Coordinator Name} #_ATT{Phone} #_ATT{Email}
I’ve tried to add the following code to the ‘Default Single Event’ here: Events > Settings > Formatting > Default Single Event Box
<div style="float:right; margin:0px 0px 15px 15px;">#_LOCATIONMAP</div> <p> <strong>Date/Time</strong><br/> Date(s) - #_EVENTDATES<br /><i>#_EVENTTIMES</i> </p> {has_location} <p> <strong>Location</strong><br/> #_LOCATIONLINK </p> {/has_location} <p> <strong>Event Details</strong><br /> Open To The Public - #_ATT{Open To The Public?}{Yes|No|}<br /> {has_coordinator_name} Coordinator Name - #_ATT{Coordinator Name}<br /> {/has_coordinator_name} {has_phone}Phone - #_ATT{Phone}<br /> {/has_phone} {has_email} Email - #_ATT{Email}<br /> {/has_email} </p> <p> <strong>Categories</strong> #_CATEGORIES </p> <br style="clear:both" /> #_EVENTNOTES {has_bookings} <h3>Bookings</h3> #_BOOKINGFORM {/has_bookings}
It is hiding the custom attribute fields I created. Am I formatting the html incorrectly, do I need to add some php somewhere, or all of the above?
Thank you.
- The topic ‘Need Help Understanding How to Hide a Custom Attribute’ is closed to new replies.