Class in {$startform}

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
farhadprm
Forum Members
Forum Members
Posts: 158
Joined: Mon May 28, 2007 2:40 pm
Location: Rome

Class in {$startform}

Post 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
Last edited by farhadprm on Sun Mar 16, 2014 8:07 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Class in {$startform}

Post by Dr.CSS »

Wrap it in a div with that class on it...
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm
Location: Canada

Re: Class in {$startform}

Post 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!
Post Reply

Return to “Layout and Design (CSS & HTML)”