div id="eventtestimonial" class="prepend-1"> <h4>Testimonial</h4> <p><span class="testquote">"</span>[*eventTestimonial*]<span class="testquote">"</span></p> <div id="testname"> <p><span class="name">—[*testimonialName*]</span</p> </div> </div>
Use the following code to switch off parts of your website when no content is available. This comes in handy when those parts of your website have a background color.
[+phx:if=`[*side-content:len*]`:gt=`10`:then=`
<div id="sideContentWithBgColor">
[*side-content*]
</div>
`:else=``+]
Hi BnH,
http://modxrules.com/articles/hide-empty-sections-with-phx
Use the following code to switch off parts of your website when no content is available. This comes in handy when those parts of your website have a background color.[+phx:if=`[*side-content:len*]`:gt=`10`:then=` <div id="sideContentWithBgColor"> [*side-content*] </div> `:else=``+]
[+phx:if=`[*side-content:len*]`:gt=`10`:then=` <div id="eventtestimonial" class="prepend-1"> <h4>Testimonial</h4> <p><span class="testquote">"</span>[*eventTestimonial*]<span class="testquote">"</span></p> <div id="testname"> <p><span class="name">—[*testimonialName*]</span></p> </div> </div> `:else=``+]
[+phx:if=`[*side-content*]`:len:gt=`10`:then=`