Support Forums

Old 03-08-2009, 09:57 PM   #1
Member
 
Join Date: Sep 2008
Posts: 30
Rep Power: 3
skyblue is on a distinguished road
Question Viewlistings Formatting

Hi,

I've changed the extrafields code in the viewlistings template so that checkbox extra fields will display in multiple columns.

Code:
{* Extra Fields *}
{foreach from=$extrafields item=extras}
     <tr class="{cycle values='row1,row2' advance=true}">
          <td><strong>{$extras.title}:</strong></td>
          <td>
               {if isset($extras.value)}
               {html_table loop=$extras.value cols=3 table_attr='border="0" cellpadding="2"' trailpad=""}
               {/if}
          </td>
     </tr>
{/foreach}
{* End Extra Fields *}
This has helped with the length of the display however results still look "cluttered".

I have been unable to figure out how to add a seperator (bullet before or comma after) each of the multiple results returned for each checkbox fields. Is this possible?

Any help would be appreciated.
Thanks

Using 4.09 Designer
skyblue is offline   Reply With Quote
Old 03-08-2009, 10:29 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,847
Rep Power: 111
Eric Barnes is a jewel in the rough
Default

Using the html_table plugin limits what you can do. Basically you can only pass an array in and it displays that inside the table. Another option would be to manually do it with some smarty math. Check out the default home.tpl on how I did it.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed changing viewlistings sunshinemike HTML, CSS, and Design Help 1 02-18-2009 07:48 AM
Display First Name and Last Name in Viewlistings nagrap2 v4 Questions & Support 3 01-16-2009 01:11 PM
viewlistings and custom fields summer v3.1 Modules & Modifications 16 10-04-2006 03:44 AM
Changing viewlistings.tpl layout GSP v3.1 Modules & Modifications 0 05-16-2006 03:12 PM
viewlistings problem 7standing7 v3.0 Questions & Support 5 04-01-2006 10:23 AM


All times are GMT -4. The time now is 11:40 PM.


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