Hide empty sections with PHx
on 13-Sep-2009 | Comments ( 4 ) Tags: Evolution
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=``+]
Do you know other ways to do this in modx?
Write a comment
Posts: 2
Reply #4 on : Sat January 23, 2010, 08:49:26
Posts: 2
Reply #3 on : Sat January 23, 2010, 17:02:40
Posts: 2
Reply #2 on : Sun February 07, 2010, 06:52:45
Posts: 2
Reply #1 on : Sun February 07, 2010, 08:44:32