Hello,
I am wondering about the following phenomenon:
I have a placeholder “[[+msgTotal]]”. I want a value dependend info:
[[+msgTotal:gt=
0:then=
xxx]]
But this dont runs.
What is my mistake?
Or is it a bug?
thank you in advance.
Bye
Chris
Hello,
I am wondering about the following phenomenon:
I have a placeholder “[[+msgTotal]]”. I want a value dependend info:
[[+msgTotal:gt=
0:then=
xxx]]
But this dont runs.
What is my mistake?
Or is it a bug?
thank you in advance.
Bye
Chris
I did a test but I can’t reproduce any problems.
Testcode:
[[setMyPlaceholder? &val=`1`]]
[[+msgTotal:gt=`0`:then=`greater`:else=`less or equal`]]
Snippet “setMyPlaceholder”
<?php
$modx->setPlaceholder('msgTotal', $val);
thank you very much.
Your testcode runs perfect.
so I found my mistake:
[[+msgTotal:gt=0:then=
greater:else=
less or equal]]
gt=0
I forgot the backticks.
Thank you so much