Hello,
All of my output modifiers worked fine until I upgraded to 2.2.8, since then they seem to be returning wrong results.
I have a placeholder which contains a numerical value
, I call it uncached since it changes often.
Then I have the following conditional statement
[[!+total:isnot=``:then=`(<span class="results_number">[[!+total]]</span>)`]]
which worked fine before the update and returned placeholder only if it had a value.
So I have been trying to find out where the problem comes form and created the following statement
[[!+total:is=``:then=`empty`:else`(<span class="results_number">[[!+total]]</span>)`]]
which unexpectedly returned "empty", meaning that the placeholder is empty. This is not true as I placed the [[!+total]] placeholder right outside the statement and it returns a value every time.
My question is, what has changed since 2.2.4 which may affect the conditional statements?
I was checking change log and didn't find anything particularly interesting regarding output modifiers.
My guess is that for some reason Modx is gets an empty placeholder due to the order of elements which it parses, may it be right?
[ed. note: ellipsis_89 last edited this post 13 years, 3 months ago.]