XF 2.1 checkboxrow and listColumns class

AndrewSimm

Well-known member
HTML:
<xf:checkboxrow label="{{ phrase('additional_options') }}">
    <xf:option name="publish" checked="{{ $article.publish ? 'checked' : '' }}">{{ phrase('publish_article') }}</xf:option>
    <xf:option name="feature" checked="{{ $article.feature ? 'checked' : '' }}">{{ phrase('feature_article') }}</xf:option>
    <xf:option name="premium" checked="{{ $article.premium ? 'checked' : '' }}">{{ phrase('premium_subscribers_only') }}</xf:option>
    <xf:option name="display_author_name" checked="{{ $article.display_author_name ? 'checked' : '' }}">{{ phrase('display_author_name') }}</xf:option>
</xf:checkboxrow>

This code is rendered as an unordered list. What I would like to do is use the "listColumns" class so the checkboxes are in two columns. How do I do that?
 
The same as in XF 2.0...
HTML:
<xf:checkboxrow label="{{ phrase('additional_options') }}" listclass="field listColumns">
 
The same as in XF 2.0...
HTML:
<xf:checkboxrow label="{{ phrase('additional_options') }}" listclass="field listColumns">

Thanks Snog!

Is there a good place to look to understand how XF translate the XF syntax to html?
 
Back
Top Bottom