jfxcube
03-04-2012, 09:37 PM
<vb:if condition="$show['quickchooser']">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="{vb:rawphrase quick_style_chooser}"><option class="hidden"></option></optgroup>
<vb:if condition="$quickchooserbits1">
<vb:if condition="$quickchooserbits2">
<optgroup label=" {vb:rawphrase standard_styles}">
</vb:if>
{vb:raw quickchooserbits1}
<vb:if condition="$quickchooserbits2">
</optgroup>
</vb:if>
</vb:if>
<vb:if condition="$quickchooserbits2">
<vb:if condition="$quickchooserbits1">
<optgroup label=" {vb:rawphrase mobile_styles}">
</vb:if>
{vb:raw quickchooserbits2}
<vb:if condition="$quickchooserbits1">
</optgroup>
</vb:if>
</vb:if>
</select>
</vb:if>
After upgrading at 4.1.11 from 4.1.10 there is no way to remove dropdown for choosing style even if in option --> Language & style settings --> Allow Users To Change Styles is set to no. Yes i know i can delete the code just above, just wondering why the conditional is not working anymore....
More where to set eventually chooserbits1 and 2 in options????
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="{vb:rawphrase quick_style_chooser}"><option class="hidden"></option></optgroup>
<vb:if condition="$quickchooserbits1">
<vb:if condition="$quickchooserbits2">
<optgroup label=" {vb:rawphrase standard_styles}">
</vb:if>
{vb:raw quickchooserbits1}
<vb:if condition="$quickchooserbits2">
</optgroup>
</vb:if>
</vb:if>
<vb:if condition="$quickchooserbits2">
<vb:if condition="$quickchooserbits1">
<optgroup label=" {vb:rawphrase mobile_styles}">
</vb:if>
{vb:raw quickchooserbits2}
<vb:if condition="$quickchooserbits1">
</optgroup>
</vb:if>
</vb:if>
</select>
</vb:if>
After upgrading at 4.1.11 from 4.1.10 there is no way to remove dropdown for choosing style even if in option --> Language & style settings --> Allow Users To Change Styles is set to no. Yes i know i can delete the code just above, just wondering why the conditional is not working anymore....
More where to set eventually chooserbits1 and 2 in options????