Conditional place holder for custom attribute
-
I added a conditional placeholder to custom attributes. So that if a field is left blank it wont be visible in the single events page. This works fine. But I have a drop down custom attribute with #_ATT{key name}{select|option1|option2}.
According to the conditional placeholder I added it shows -select- value.I want this in such a way that if drop down options are not selected don’t display else display the option selected. Any help appreciated. Thank you in advancecase 'has_speaker': if (is_array($EM_Event->event_attributes) && !empty($EM_Event>event_attributes['Request a Speaker:'])) $replacement = preg_replace('/\{\/?has_speaker\}/', '', $match); else $replacement = ''; break;
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Conditional place holder for custom attribute’ is closed to new replies.