DohTheme Well-known member Nov 25, 2017 #1 Hi all, In Style Properties when I add a new property with a Value type: Select menu how to add options to this menu ? also is anyone have an example for template value type ? Regards
Hi all, In Style Properties when I add a new property with a Value type: Select menu how to add options to this menu ? also is anyone have an example for template value type ? Regards
Ehren Well-known member Nov 25, 2017 #2 This is what I use Code: option1=First option option2=Second option
DohTheme Well-known member Nov 25, 2017 #3 Ehren said: This is what I use Code: option1=First option option2=Second option Click to expand... Worked Thanks @Ehren
Ehren said: This is what I use Code: option1=First option option2=Second option Click to expand... Worked Thanks @Ehren
[xFv] Well-known member Nov 25, 2017 #4 Easiest way in my honest opinion is to add options in the Value formatting parameters field. Example: Code: option1=Option 1 option2=Option 2 option3=Option 3 and so on....
Easiest way in my honest opinion is to add options in the Value formatting parameters field. Example: Code: option1=Option 1 option2=Option 2 option3=Option 3 and so on....
[xFv] Well-known member Nov 25, 2017 #6 Code: <xf:if is="property('GROUP_ID') == 'OPTION1'"> Option 1 code here... <xf:elseif is="property('GROUP_ID') == 'OPTION2'" /> Option 2 Code Here... </xf:if>
Code: <xf:if is="property('GROUP_ID') == 'OPTION1'"> Option 1 code here... <xf:elseif is="property('GROUP_ID') == 'OPTION2'" /> Option 2 Code Here... </xf:if>
DohTheme Well-known member Nov 25, 2017 #7 [xFv] said: Code: <xf:if is="property('GROUP_ID') == 'OPTION1'"> Option 1 code here... <xf:elseif is="property('GROUP_ID') == 'OPTION2'" /> Option 2 Code Here... </xf:if> Click to expand... This was very helpful . Thanks @[xFv]
[xFv] said: Code: <xf:if is="property('GROUP_ID') == 'OPTION1'"> Option 1 code here... <xf:elseif is="property('GROUP_ID') == 'OPTION2'" /> Option 2 Code Here... </xf:if> Click to expand... This was very helpful . Thanks @[xFv]
[xFv] Well-known member Nov 25, 2017 #8 If you wanted to do this in options instead of style properties you would use this syntax: Code: <xf:if is="$xf.options.OPTION_ID == '1'"> Addon Option 1 Code Here... <xf:elseif is="$xf.options.OPTION_ID == '2'" /> Addon Option 2 Code Here... </xf:if>
If you wanted to do this in options instead of style properties you would use this syntax: Code: <xf:if is="$xf.options.OPTION_ID == '1'"> Addon Option 1 Code Here... <xf:elseif is="$xf.options.OPTION_ID == '2'" /> Addon Option 2 Code Here... </xf:if>