I just fixed it by moving the CODE section no a new chunck, I guess something doesn’t get properly processed, can someone help me understand why this happens?
because the parser tries to parse the tag [[+link:contains=`http`:then=`is link!`:else=`isn't`]] before the snippet tag [[getImageList? ... ]] is executed.
To avoid this, you can move the template code into a chunk (as you have done) or with getImageList you can also use tags with curly braces ({{...}}) in the inline template.
The MODX parser ignores these tags with the curly braces and the snippet getImageList converts them into proper MODX tags, before the template is used in the snippet.
the issue its the one explained by @halftrainedharry and basically I wanted to find if a user has entered an url or just a number on a TV so I can do the rigth process at the link (open new widnow if its external or open _self if it a internal page)
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.