Quote from: flinx at Aug 29, 2008, 11:26 AM
Hey paulp...here’s the easiest way I know to fix this: use PHx (http://modxcms.com/PHx-1006.html) ... I use it all the time for this. What you would do is install PHx and then put the following in your template:
[*image:is=``:then=``:else=`<img src="[*image*]" />`*]
Try it out and let me know if you have any problems.
Paulp, don’t mean to hijack your thread. I have a similar question so thought to post it here.
@Flinx/dev_cw, etc, I think I read this somewhere on the forums but cannot seem to find it now. I think PHx would do the job but am not sure. Say I had a 3-column template - left one for menu, middle one for content and right one for news bits. Can I use some PHx function to
automatically hide the right column if it was empty (if no news) and at the same time
automatically expand the middle column to fill the space left by the right column? How would the PHx call look like? I hope my question’s clear.
Secondly, is there an alternative to using PHx to achieve the same thing described above, say some CSS code? Thanks