Page 1 of 1

Class in {$startform}

Posted: Sun Mar 03, 2013 10:39 pm
by farhadprm
Hi,
I would like to know how could be put a class inside {$startform}?
I tried this but it did not work:

Code: Select all

{$startform class="navbar-search pull-left"}
I would like to have as a result:

Code: Select all

<form class="navbar-search pull-left">
Thanks

Re: Class in {$startform}

Posted: Mon Mar 04, 2013 6:12 pm
by Dr.CSS
Wrap it in a div with that class on it...

Re: Class in {$startform}

Posted: Mon Mar 11, 2013 11:15 pm
by geepers
Have you tried using the smarty 'replace' function?

Code: Select all

{$startform|replace:'cms_form':'navbar-search pull-left'}
Just view the source first to make sure that

Code: Select all

{$startform}
generates a class value by default, then just replace 'cms_form' (above), with whatever the value is for that class.

Hope this helps!