Snog
Well-known member
Are conditionals processed in a template's xen:select section?
I've tried various iterations of this and none of them seem to work...
I've tried various iterations of this and none of them seem to work...
Code:
<xen:select name="default_sort_order" value="{$forum.default_sort_order}" inputclass="autoSize">
<xen:option value="last_post_date">{xen:phrase last_message}</xen:option>
<xen:option value="post_date">{xen:phrase start_date}</xen:option>
<xen:option value="title">{xen:phrase title}</xen:option>
<xen:option value="reply_count">{xen:phrase replies}</xen:option>
<xen:option value="view_count">{xen:phrase views}</xen:option>
<xen:if is="{$forum.node_id} == 3"><xen:option value="addon_value">{xen:phrase addon_phrase}</xen:option></xen:if>
</xen:select>
Last edited: