Conditional placeholders issue
-
The has_location-placeholder doesn’t work as intended in this code:
<div class="row-fluid zmt">[events_list]<div class="span12 zmt zmb"><h3 class="event-tittel">#_EVENTLINK</h3></div>{has_image}<div class="row-fluid"><div class="span3">#_EVENTIMAGE</div><div class="span3">#_EVENTDATES <br /> #_EVENTTIMES <br />{has_location} <em> #_LOCATIONNAME, #_LOCATIONTOWN</em><br />{/has_location}Attang?r(er): #_EVENTCATEGORIES</div><div class="span6">#_MYEXCERPT</div></div>{/has_image}{no_image}<div class="row-fluid"><div class="span3 offset1">#_EVENTDATES <br /> #_EVENTTIMES <br /> {has_location}<em>#_LOCATIONNAME, #_LOCATIONTOWN</em><br />{/has_location}Attang?r(er): #_EVENTCATEGORIES</div><div class="span8">#_MYEXCERPT</div></div>{/no_image} [/events_list]</div>
Locations are hidden regardless of whether there is a location or not. has_location works in other places, like in my widget, so I am at loss to why it doesn’t work here? Did I do something wrong or is this a bug?
All the divs are there for the Bootstrap grid . Removing them doesn’t make a difference.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Conditional placeholders issue’ is closed to new replies.