I’ve upgrade to revo from evo. Switched to If, from Phx.
Confused on getting code to work I had in a template.
[[+phx:if=`[[*top_image]]`:is=``:then=``:else=`
<div id="slide_wrap">
<img src="[[*top_image]]" alt="[[*pagetitle]]">
</div>`]]
I’ve came up with...
[[If? &subjuct=`[[*top_image]]` &operator=`equals` &operand=`` &then=`` &else=`
<div id="slide_wrap">
<img src="[[*top_image]]" alt="[[*pagetitle]]">
</div>`]]
Now I know this is wrong, b\c it doesn’t work. Looking for some guidance though.
Thanks
Quote from: Cromzinc at Jul 24, 2011, 03:12 PM
I’ve upgrade to revo from evo. Switched to If, from Phx.
Confused on getting code to work I had in a template.
[[+phx:if=`[[*top_image]]`:is=``:then=``:else=`
<div id="slide_wrap">
<img src="[[*top_image]]" alt="[[*pagetitle]]">
</div>`]]
I’ve came up with...
[[If? &subjuct=`[[*top_image]]` &operator=`equals` &operand=`` &then=`` &else=`
<div id="slide_wrap">
<img src="[[*top_image]]" alt="[[*pagetitle]]">
</div>`]]
Now I know this is wrong, b\c it doesn’t work. Looking for some guidance though.
Thanks
try:
[[If?
&subject=`[[*top_image]]`
&operator=`!empty`
&then=`
<div id="slide_wrap">
<img src="[[*top_image]]" alt="[[*pagetitle]]">
</div>`
]]
ohhh my god...
Worked perfectly, to easy. Thanks very much!