Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
html radios custom function documentation needs extending

 
Post new topic   Reply to topic    Smarty Forum Index -> Documentation
View previous topic :: View next topic  
Author Message
BbErSeRkK
Smarty Rookie


Joined: 04 Jan 2008
Posts: 14

PostPosted: Fri Jan 04, 2008 1:08 am    Post subject: html radios custom function documentation needs extending Reply with quote

http://www.smarty.net/manual/en/language.function.html.radios.php

Does not document the label_ids atribute
for the radio labels to have "for" attributes (i.e. to bind it to the radio button), it must contain the attribute

Code:
label_ids='true'


it is default set to false in the plugin file " function.html_radios.php "

The output in the examples shown is incorrect. it will not have "for=" in the label tag by default

the templates should be:
{html_radios name='id' options=$cust_radios
label_ids='true' selected=$customer_id separator='<br />'}

or the "for=" should be removed from the label tag in the output shown.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Documentation 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