Support Forums

Subategories to appear on homepage

This is a discussion on Subategories to appear on homepage within the Technical Support forums, part of the Technical Support Forums category; Hi, I want for each Main category 5 subcategories to appear on the homepage + a link saying more... How ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 11-30-2008, 05:54 AM   #1
Member
 
Join Date: Nov 2008
Posts: 82
Rep Power: 11
Isje is on a distinguished road
Default Subategories to appear on homepage, HOW?

Hi,
I want for each Main category 5 subcategories to appear on the homepage + a link saying more... How can I do this?
Thanks

Last edited by Isje; 11-30-2008 at 09:07 AM.
Isje is offline  
Old 12-01-2008, 01:04 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Open home.tpl and find this:
<!--{$data[td].subcats}-->

Change it to:
{$data[td].subcats}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 12-02-2008, 08:37 AM   #3
Member
 
Join Date: Nov 2008
Posts: 82
Rep Power: 11
Isje is on a distinguished road
Default

Thanks very much for this info Eric.
Now, I want to add the counter after each subcategory. How can I do this?
Thanks again
Iss
Isje is offline  
Old 12-02-2008, 10:22 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,362
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Isje
Thanks very much for this info Eric.
Now, I want to add the counter after each subcategory. How can I do this?
Thanks again
Iss
I dont remember how to do it off the top of my head, it used to do this automatically but it really killed the sites performance because of all the extra database queries when sites got busy. SO keep in mind that while it may sound like a good idea if your site gets busy you will find your performance with suffer greatly.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 05-21-2009, 12:47 PM   #5
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 9
kayfi is on a distinguished road
Question

If we modify this: {$data[td].subcats}, it's only displaying 3 subcategories.
Is there a way to display all the subcategories and to add <br> between them ?
__________________
v 4.1.3 Developer
Default templates
kayfi is offline  
Old 05-21-2009, 01:37 PM   #6
Just get on with it!
 
michael's Avatar
 
Join Date: Jan 2007
Location: Milton Keynes, England
Posts: 474
Rep Power: 31
michael is just really nice michael is just really nice
Default

To display more categories go to yoursite/includes/classes/kernel/Categories.php and change the limit to your requirements . . .
Code:
function getSubCategoriesList($parent, $limit=3  


__________________
M Michael
V4.2.1 Developer - Sigma Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline  
Old 05-21-2009, 01:41 PM   #7
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 9
kayfi is on a distinguished road
Thumbs up

Thank you Michael !!!!
__________________
v 4.1.3 Developer
Default templates
kayfi is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Homepage Questions minerslist Pre Sales Questions 16 10-20-2008 11:32 AM
New listings on homepage please Tim_A Technical Support 41 05-31-2008 02:32 PM
HELP!! with homepage Please Jessej Technical Support 3 09-20-2007 03:09 AM


All times are GMT -4. The time now is 08:41 AM.


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