Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

html_checkboxes with format?

 
Post new topic   Reply to topic    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
Ele_lz
Smarty n00b


Joined: 11 Jul 2017
Posts: 1

PostPosted: Tue Aug 01, 2017 1:20 am    Post subject: html_checkboxes with format? Reply with quote

hello, anyone knows how could i give format to an array printed on html_checkboxes into a table, fetching 5 items per row, the only way i can see in documentation is giving the same separator.

so if my arraay has 100 items, it would look better in 20 rows rather than in 100, or even worse a single row with 100 items... if is there a way and someone knows it and want to share it, i would preciate it

thanks
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1147

PostPosted: Tue Aug 01, 2017 7:57 am    Post subject: Reply with quote

You'll have to manually specify a separator, and split in groups before calling to the function, if you so desire.
Ref: https://www.smarty.net/docs/en/language.function.html.checkboxes.tpl
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP