Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Undocumented feature? class="something" in custom

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
geoB
Smarty Regular


Joined: 09 Sep 2010
Posts: 46

PostPosted: Wed Dec 14, 2011 12:49 am    Post subject: Undocumented feature? class="something" in custom Reply with quote

I may have stumbled on an undocumented feature of custom functions. I wanted to apply a style to functions like
Code:
{html_options}
and discovered to my amazement is that I just needed to add the clause. So something like
Code:
{html_options class="something" ...}
works just fine.

Thanks!

George
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Dec 14, 2011 2:38 am    Post subject: Reply with quote

http://www.smarty.net/docs/en/language.function.html.options.tpl

Quote:
All parameters that are not in the list above are printed as name/value-pairs inside the <select> tag. They are ignored if the optional name is not given.
Back to top
View user's profile Send private message Visit poster's website
geoB
Smarty Regular


Joined: 09 Sep 2010
Posts: 46

PostPosted: Wed Dec 14, 2011 3:15 am    Post subject: Reply with quote

I guess I "discovered" the meaning of
Quote:
All parameters that are not in the list above are printed as name/value-pairs inside the <select> tag.


g
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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