Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4.1 Questions & Support

Notices

 
LinkBack Thread Tools Display Modes
Old 08-28-2009, 01:59 PM   #11
Junior Member
 
Join Date: Aug 2009
Posts: 21
Rep Power: 1
adexinc is on a distinguished road
Default Smarty and CSS to rewrite code browse.tpl question

Hi,

I am looking to rewrite the code so that the subcategories listed on the homepage to not appear in tables... before I begin I would like to see if anyone has already done this and is willing to share some code.

I have searched for this but it appears like there is no specific data provided as to what to do and where

Anyways, as always any 'help' is appreciated.

Thank you
Joanna

Quote:
Originally Posted by Mike-N-Tosh View Post
The issue that you are seeing is that within the browse.tpl file the array data is being put into a table cell <td> with the parent category, then each subcategory. The nature of a data cell within a table is that it will always auto adjust the height to contain the data within it. In your picture you have a table with two columns and therefore when one <td> has several subcategories it will make the height larger and will leave white space in the adjacent <td> that does not have as many of the subcategories.

The only way that I know of to get around that is to rewrite the browse.tpl file to use CSS boxes to contain the data instead of a table. This will get complicated and you would have to be an advanced coder for smarty and CSS to accomplish this.
adexinc is offline   Reply With Quote
Old 08-28-2009, 10:48 PM   #12
Junior Member
 
Join Date: Aug 2008
Posts: 14
Rep Power: 5
freeze2 is on a distinguished road
Default

Quote:
Originally Posted by adexinc View Post
Hi,

I am looking to rewrite the code so that the subcategories listed on the homepage to not appear in tables... before I begin I would like to see if anyone has already done this and is willing to share some code.

I have searched for this but it appears like there is no specific data provided as to what to do and where

Anyways, as always any 'help' is appreciated.

Thank you
Joanna
Hi there...I think this is what you're after...

Using divs instead of table columns on home page
__________________
Developer-v4.1.5 | Steinbach Free Classifieds
freeze2 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
How to show the number of listings in subcategories? AHTOXA Modules / Plugins / Modifications 12 06-01-2009 01:35 PM
SubCategories Unregistered Pre Sales Questions 2 09-29-2008 09:50 AM
how to display subcategories on homepage cedano v4 Questions & Support 5 06-28-2008 03:52 AM
Show 2nd level categories on homepage? Success v4 Questions & Support 8 06-11-2008 09:16 PM
Can't browse subcategories Bucketman v3.0 Questions & Support 2 04-04-2006 07:07 AM


All times are GMT -4. The time now is 10:01 AM.


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