try
[+phx:if=`{{left}}`:is=`{{left}}`:then=`<img src="[(base_url)]assets/templates/template/images/left_menu_top.gif" alt="" />`+]
hope it helps
you may like to try
[+phx:if=`{{left}}`:len:gt=`1`:then=`<img src="[(base_url)]assets/templates/template/images/left_menu_top.gif" alt="" />`+]
I’ve never tried triggering a PHx with a chunk call. What’s contained within the chunk?
In my chunk I´m printing the menu.
But I´m using MODx 1.0.0 and I can see that PHx is only working with 0.9.5
maybe you could use ditto if its a menu. PHx should work with Evo, we’ve just launched our new site and it uses PHx extensively.
-
☆ A M B ☆
- 24,524 Posts
PHx was released way back then, and its compatibility list was just never updated as MODx evolved (pun fully intended!)
Give this a try (be sure to use back-ticks, not single quotes):
[+phx:{{left}}:len:gt=`1`:then=`<img src="[(base_url)]assets/templates/template/images/left_menu_top.gif" alt="" />`:else=` `+]