• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Value type: Select menu

DohTheme

Well-known member
#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
 

[xFv]

Previously Cylent1
#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....
 

[xFv]

Previously Cylent1
#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>
 

[xFv]

Previously Cylent1
#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>