Support Forums

Show 2nd level categories on homepage?

This is a discussion on Show 2nd level categories on homepage? within the Technical Support forums, part of the Technical Support Forums category; How to show all the subcategories under the main categories on the homepage?...


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 04-25-2008, 04:30 PM   #1
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 17
Success is on a distinguished road
Default Show 2nd level categories on homepage?

How to show all the subcategories under the main categories on the homepage?
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 04-25-2008, 05:02 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Open the home.tpl template file and locate this:
Code:
<!--{$data[td].subcats}-->
Just uncomment or change it to:

Code:
{$data[td].subcats}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 04-26-2008, 12:26 AM   #3
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 17
Success is on a distinguished road
Default

Thanks a lot Eric.
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 04-27-2008, 01:45 AM   #4
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 17
Success is on a distinguished road
Default

Eric, uncommenting that shows some subcats but not the entire list.

How to show all subcats?

thanks.
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 04-28-2008, 01:44 AM   #5
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

Go to /includes/classes/kernel/Categories.php and find;

PHP Code:
function getSubCategoriesList($parent$limit=
Change the 3 to your desired limit.
__________________
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 04-28-2008, 04:39 AM   #6
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 17
Success is on a distinguished road
Default

Thank you Michael.
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 06-11-2008, 08:41 AM   #7
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 285
Rep Power: 20
hel68c is just really nice hel68c is just really nice
Default

Hello,

If we want to return to the home page by press Home it work fine. But if we press Categories by press the link Categories � car. It does'nt show the subcategories.

Do you have a solution?
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline  
Old 06-11-2008, 06:16 PM   #8
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 285
Rep Power: 20
hel68c is just really nice hel68c is just really nice
Default

Any advice?
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline  
Old 06-11-2008, 10:16 PM   #9
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 285
Rep Power: 20
hel68c is just really nice hel68c is just really nice
Default

Ok I find it,

just do the samething in the file default/categories/browse.tpl
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline  
Closed Thread

Thread Tools
Display Modes



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


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