Replace legacyIf after migration from v4 to v5?
Author: nenadstupar_
Publication Date: 7/11/2019 8:10
What will be syntax of this function for version 5?
<CMS_FUNCTION name="legacyIf" resultname="global_trim_level">
<CMS_VALUE_PARAM name="conditionVar" value="Global.preview"/>
<CMS_PARAM name="compareValue" value="1"/>
<CMS_CDATA_PARAM name="trueValue">4</CMS_CDATA_PARAM>
<CMS_CDATA_PARAM name="falseValue">4</CMS_CDATA_PARAM>
</CMS_FUNCTION>
-
Author: Peter_Jodeleit - 7/11/2019 12:14
Since the "if" here is not needed (both cases are equal), you could simply write $CMS_SET(global_trim_level, 4)$. Generally you can use CMS_IF as replacement for "legacyIf".
[Corrected, replaced CMS_VALUE with CMS_SET - thank you @ felix.reinhold]
0 -
Author: felix_reinhold - 7/12/2019 10:11
Small addition: I think Peter accidently wrote CMS_VALUE but meant CMS_SET :smileyhappy:
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires