We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5340
    • 1,624 Posts
    Here’s an easy way to switch of parts of your website if no content is available. Works well with boxes that have some sort of background color/image for the wrapper

    <div id="content">
    	
    	
    	[*content*]
    
    
    	[+phx:if=`[*side-content:len*]`:gt=`10`:then=`
    			
    	<div id="sideContent">
    	[*side-content*]
    	</div>
    	
    	`:else=``+]
    
    
    </div>
    

      • 6726
      • 7,075 Posts
      Nice tip, PHx can be used creatively to make template more consistent and better with some condition testing. It’s a nice one I hadn’t come up with myself smiley
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id