Support Forums

Different class for each extra field

This is a discussion on Different class for each extra field within the Customizations forums, part of the Developer Forums category; Hi! How can I add a class to each extra field row? I've added the title as a class in ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 06-17-2010, 05:18 PM   #1
Customer
 
Join Date: May 2010
Posts: 11
Rep Power: 3
susawx is on a distinguished road
Default Different class for each extra field

Hi! How can I add a class to each extra field row? I've added the title as a class in viewlisting.tpl like this:
{* Extra Fields *}
{foreach from=$extrafields item=extras}
<tr class="{$extras.title}">

but my titles has �, � and many blank spaces to use it as a class name. How can I add code to generate a different class for each one? Like class="extra1", class="extra2", etc?
Thanks!!
susawx is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra Field Search / Save Extra Field to Short Desciption tlombard Technical Support 8 03-04-2010 06:18 PM
Create a extra field just like the price field ? mirway7 Technical Support 3 10-13-2009 12:27 AM
Change format in "date field" extra field topbidz Technical Support 2 05-01-2008 08:38 PM


All times are GMT -4. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0