|
|
#1 |
|
Graphic / Web Desginer
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4 ![]() |
Hi Guys,
I've through other threads and they help a lot with displaying subcats under main cats on the homepage. One little I want to ask is how to display the subcats vertically. I'm thinking I use something like [for each] to split the array, but I may be totally wrong. Can somebody please me help me out, I'm sure its something simple I cant think of right now ![]() Thanks in advance. |
|
|
|
|
|
#2 |
|
Graphic / Web Desginer
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4 ![]() |
Am I right in thinking this a pretty hard task then?
If so, I may have to return the product, which is a shame
|
|
|
|
|
|
#3 | |
|
Coder
Join Date: Mar 2006
Posts: 4,414
Rep Power: 108 ![]() ![]() |
Quote:
Its a holiday weekend and as the post in the announcement forum says 68C is closed for the holiday. Next, what version of the software are you using and what template, tough to offer help when you dont give any info to go on. |
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jan 2007
Posts: 365
Rep Power: 18 ![]() |
Assuming your using v4xx, just go to includes>classes>kernel>Categories.php and insert a <br /> where needed.
Code:
{
if($rs['cLink']<>"")
{
$add_cats.='<a href="'.$rs['cLink'].'">'.htmlspecialchars($rs['name']).'</a><br />';
}
else
{
$slug = ( empty($rs['slug']) ) ? $rs['id']: $rs['slug'];
$add_cats.='<a href="category.php?cat='.$slug.'">'.htmlspecialchars($rs['name']).'</a><br />';
}
__________________
M Michael V4.1.3 Developer - 3 Column Default Template "All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642) |
|
|
|
|
|
#5 |
|
Graphic / Web Desginer
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4 ![]() |
Wow...
Knew it was something really simple, thanks A LOT And my apologies about the holiday thing, will definitely pay more attention in the future. Thanks again |
|
|
|
|
|
#6 |
|
Graphic / Web Desginer
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4 ![]() |
Hey Guys,
I've another category list question, and I think it will be the last of it ![]() Basically, now that I have the cats and subcats showing as a vertical list on the homepage (ver.4xx), could anyone tell me how to display the cat/subcat tables directly under each other? At the moment, the height of each row depends on the height of the row with the largest amount of subcats. I think I need to get rid of a [tr] somewhere in the categories.php? Thanks in advance! Last edited by DGiscombe; 04-13-2009 at 09:31 AM. |
|
|
|
|
|
#7 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,015
Rep Power: 116 ![]() |
That one is tricky. The only way I can think of would be to create a three column table. Then somehow loop the categories so each loop is then ran inside one of these three td cells.
It can complex real quick.
__________________
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 |
|
|
|
|
|
#8 |
|
Graphic / Web Desginer
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4 ![]() |
Heh heh, I was thinking that as well.
I'm thinking since there will only be a certain amount of categories, I could make col 1 have cats 1-3, col 2 have 4-7 and col 3 have 8&9 Will the rest of the script run ok if I try this? |
|
|
|
|
|
#9 | |
|
Member
Join Date: May 2008
Posts: 73
Rep Power: 9 ![]() ![]() |
Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to show list of categories | safatweb | Modules / Plugins / Modifications | 9 | 10-31-2008 12:53 PM |
| Mod request: list ad in multiple categories | spark | Modules / Plugins / Modifications | 3 | 06-05-2008 03:55 PM |
| Search drop down list - Main Categories in BOLD | Greg H | v3.1 Modules & Modifications | 26 | 12-19-2007 04:43 PM |
| Static Categories and Sub-categories list | Tim_A | v4 Questions & Support | 0 | 06-08-2007 08:41 AM |
| Categories to be listed in a list menu rather that in a text | marketingsolutions | v3.1 Modules & Modifications | 21 | 10-15-2006 08:41 AM |