Event Manager – Conditional Custom Attribute
-
I have created a custom attribute: #_ATT{Registration}
The value will be a URL.Because I do not want an empty hyperlink on any event without registrations URL, I need to hide the HTML if the value is blank.
I can get the link to display with the following:
<a href='#_ATT{Registration}' target='_blank'>Register Now!</a>
The link displays / works as intended. If I use
{has_Registration}<a href='#_ATT{Registration}' target='_blank'>Register Now!</a>{/has_Registration}
or
{has_att_Registration}<a href='#_ATT{Registration}' target='_blank'>Register Now!</a>{/has_att_Registration}
The link is hidden regardless of whether the value is filled or not. I know this has to be a simple syntax error on my part, but I can’t seem to figure this one out. Please Help, I’ll be your best friend! Unless you don’t want to be best friends, then I’ll just play it cool and say thanks! ??
The page I need help with: [log in to see the link]
- The topic ‘Event Manager – Conditional Custom Attribute’ is closed to new replies.