-
☆ A M B ☆
- 350 Posts
Did you ever get to the bottom of this one? As I'm experiencing the same issue on a couple of my sites.
[[If? &subject=`[[+link]]` &operator=`notempty` &then=`<a href="[[~[[+link]]]]" title="[[+title1]]"><img src="[[+image1]]" alt=""/></a>` &else=`<img src="[[+image1]]" alt=""/>`]]
Have also tried:
[[+link:is=``:then=`<img src="[[+image1]]" alt=""/>`:else=`<a href="[[~[[+link]]]]" title="[[+title1]]"><img src="[[+image1]]" alt=""/></a>`]]
This is being used in conjuction with a MIGX call
[[!getImageList? &tvname=`imageGroup` &tpl=`4square-imagesTpl`]]
Running on a 2.2.14 Revo site.
MIGX Version 2.6.8
If Version 1.1.1
Suggestions please
Helen Warner
Number one pixel!
Proud to be linked with MODX at
Crimson Pixel
modx will parse the makeUrl - tag, also when [[+link]] is empty.
Try it this way:
[[+link:is=``:then=`
<img src="[[+image1]]" alt=""/>
`:else=`
<a href="[[[[+link:isnot=``:then=`~[[+link]]`:else=``]]]]" title="[[+title1]]"><img src="[[+image1]]" alt=""/></a>
`]]
This is working from inside to outside and should generate the makeUrl - tag, only when [[+link]] is not empty
-
☆ A M B ☆
- 350 Posts
Bruno - thank you for solution and such a quick response. That works perfectly!!
Helen Warner
Number one pixel!
Proud to be linked with MODX at
Crimson Pixel