Ditto, 2.1.1 SVN rev1467
MODx 0961p2 rev 3281
Error: &tpl either does not contain any placeholders or is an invalid chunk name, code block, or filename. Please check it.
my tpl is:
[!Ditto? &tpl=`@CODE <li><a href="[~[+id+]~]">[+pagetitle+]</a></li>` &parents=`96,133` &display=`4` &showInMenuOnly=`1`!]
I used the &debug=`1`, and it shows: tpl @CODE <li><a hre
Quick help/fix would be appreciated.
Thank
Hi Zi,
the error comes form the = sign in your html tag.
This is related to the modx core and the evalSnippet function.
:-)
Use a config file to input the data and it should work. Another option is to use a wrapper snippet, but the config file should work. There is an example in the configs folder in assets/snippets/ditto/configs.
There is modified version of the evalSnippet in the forum which fixes this problem.
Another way would be to change the current ditto code to use Feedx Method for url and change prohibited characters to symbol.
href|xe| ...
:-)
Oh thanks for the help guys.
I’ll check it out.