isn’t the correct syntax
[+phx:if=`[+wf.docid+]`:is=`7`:then=`A`:else=`X`+]
?
by the way, I don’t know if PHx can work inside a Tpl.
I wanted to use [+wf.title:lcase+] but it didn’t return anything, so I found another solution.
I get this when using it with ditto
Fatal error: Cannot redeclare class prePHx in /home/cipalab1/public_html/modxrules.com/assets/snippets/ditto/classes/phx.pre.class.inc.php on line 11
Any ideas. Should I upgrade Ditto too.
Ditto has its own built-in phx parser. It should work with or without PHx installed separately. Is it a fresh installation of MODx/Ditto? Which version(s)? When do you get this error? More infos please.
HI,
I’m using Evo with Ditto 2.1 and PHx 2.1.3.
Wayfider baing the main menu is called first. I am just guessing Ditto does not check if prePHx is declared or not
here’s the order of the calls
[[Wayfinder? &startId=`0` &level=`1` &firstClass=`first` &rowTpl=`mainMenuRowTpl`]]
[!Ditto? &parents=`2` &depth=`1` &tpl=`@FILE:assets/templates/site/chunks/article.html` &showInMenuOnly=`1`!]
I will try to switch the order of the calls and see if it makes a difference.