-
- 429 Posts
try
[+phx:if=`{{left}}`:is=`{{left}}`:then=`<img src="[(base_url)]assets/templates/template/images/left_menu_top.gif" alt="" />`+]
hope it helps
-
- 429 Posts
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?
-
- 39 Posts
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
-
- 429 Posts
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.
PHx was released way back then, and its compatibility list was just never updated as MODx evolved (pun fully intended!)
-
- 24,544 Posts
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=` `+]