<div id="slider-main"> <ul class="bjqs"> [[!getImageList? &tvname=`slider_main` &tpl=`@CODE: <li> <a href="[[+url]]" title="[[+text]]"> <img src="[[+image]]" alt="" /> </a> </li> `]] </ul> </div>
<li> <a href="[[+url]]" title="[[+text]]"> <img src="[[+image]]" alt="" /> </a> </li>
<li> <img src="[[+image]]" alt="" /> </li>
This question has been answered by Tyreal2012. See the first response.
[[If? &subject =`[[+url]]` &operator=`isempty` &then=` <li> <img src="[[+image]]" alt="" /> </li>` &else=` <li> <a href="[[+url]]" title="[[+text]]"> <img src="[[+image]]" alt="" /> </a> </li>` ]]
If will work for this but youll need to do it in a template rather than @codeTyreal2012, thank you for help! It's work's exacly i need ))
imageTpl
[[If? &subject =`[[+url]]` &operator=`isempty` &then=` <li> <img src="[[+image]]" alt=""> </li>` &else=` <li> <a href="[[+url]]" title="[[+text]]"> <img src="[[+image]]" alt=""> </a> </li>` ]]
Should work no issue.
Hope it helps.
[[If? &subject =`[[+url]]` &operator=`isempty` &then=` <li> <img src="[[+image]]" alt="" /> </li>` &else=` <li> <a href="[[+url]]" title="[[+text]]"> <img src="[[+image]]" alt="" /> </a> </li> `]]
<ul class="bjqs"> [[!getImageList? &tvname=`slider_main` &tpl=`slide_item` ]] </ul>
Exactly it - half the time its working out the right combination for IF, there is also ANDIF which is a snippet on the forum for multiple conditions if needed.You mean http://forums.modx.com/thread/32601/andif---conditional-snippet-allowing-multiple-and-or-conditions never heard before about this snippet, interesting...