I’ve run into somewhat of a problem when trying to use PHx conditions as a boolean switch to change Chunks.
Example:
[+user.boolean1:is=`1`:then=`
{{chunk1}}
`:else=`
[+user.boolean2:ne=`1`:then=`
{{chunk2}}
`+]
`+]
This set of PHx conditions works perfectly with straight HTML or text but fails with Chunks. Instead of the expected result, it displays the placeholders, conditions and both Chunks on the page.
Each Chunk contains some Javascript, HTML, a form and a Snippet of PHP that processes the form into a MySQL DB.
Is this something that usually occurs? Is there a workaround? Am I doing something wrong?
Thanks, Gordon MacK.
PS. I did a bit of a search before making this post and only found
one person with a similar problem, unfortunately no real solution was found.