Change number of checkbox columns
4 posts
• Page 1 of 1
Change number of checkbox columnsIs it possible (with a setting) to change the number of columns displayed? I'd like to switch it to 2 columns, from three. I poked through the php files, but haven't found where this is set. Ideally I'd not be making a core change.
Re: Change number of checkbox columnsI solved this problem:
Edit line 128 (or thereabouts) in this template file: Dataface_Form_Section_Template.html Original:
Change to:
This looks to be a global change, so it might not work out if you want to target specific elements (though I'm guessing SMARTY provides the ability to target specific columns through an if statement).
Re: Change number of checkbox columnsAs you can tell from this snippet, another way to do this on a field by field basis would be to set the widget:columns directive in the fields.ini file:
Re: Change number of checkbox columns
Ah, I like that method much better. I've started to delve a bit into the templates, but have never used SMARTY before.
4 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 6 guests |