Support Forums

How to show listings in sub-categories?

This is a discussion on How to show listings in sub-categories? within the Technical Support forums, part of the Technical Support Forums category; Hi, Is there a way to show listings under the sub-categories when browsing? If so, how? Same as when searching ...


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 03-19-2008, 10:49 AM   #1
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 19
ksuralta is on a distinguished road
Question How to show listings in sub-categories?

Hi,

Is there a way to show listings under the sub-categories when browsing? If so, how?
Same as when searching on a parent category will show listings on it's child categories.

Thanks,
__________________
Kenneth
http://www.phlist.com
v4.0.8 Developer + Custom Template
ksuralta is offline  
Old 03-19-2008, 11:07 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi,

If you open the home.tpl file you should see this:
Code:
<!--{$data[td].subcats}-->
Which will display the sub categories except it is commented out. So change it to:
Code:
{$data[td].subcats}

When searching it will search any sub-categories of the current category chosen.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 03-19-2008, 11:09 AM   #3
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 19
ksuralta is on a distinguished road
Thumbs up Got it

Got it!

Modify category.php:

Quote:
//$options['section']=$sec;
$arr_childs = array((int)$sec);
$Categories->get_ids($arr_childs);
$options['arr_childs']=$arr_childs;
__________________
Kenneth
http://www.phlist.com
v4.0.8 Developer + Custom Template
ksuralta is offline  
Old 03-19-2008, 11:13 AM   #4
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 19
ksuralta is on a distinguished road
Default

Quote:
Originally Posted by suzkaw View Post
Hi,

If you open the home.tpl file you should see this:
Code:
<!--{$data[td].subcats}-->
Which will display the sub categories except it is commented out. So change it to:
Code:
{$data[td].subcats}

When searching it will search any sub-categories of the current category chosen.
Oh that's a different solution. Does the one I posted above do the same thing?

Thanks,
__________________
Kenneth
http://www.phlist.com
v4.0.8 Developer + Custom Template
ksuralta is offline  
Old 03-19-2008, 11:51 AM   #5
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I am not sure about that code you posted. I do not see it in the v4 category file.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 04-27-2008, 01:58 AM   #6
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 21
Success is on a distinguished road
Default

I think what he mean is showing the listings of subcategories on their parent category page.

For example,

Cars
- Ford
- Honda
- BMW

I set no posting of ads for main categories. Users can only post to sub-categories.

So how to show the listings of Ford, Honda, BMW on Cars main category page?

Else, main category index pages will be empty.
__________________
Using V4++ Developer... and loving it.
Success is offline  
Old 04-28-2008, 12:06 PM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

The category page will show any sub categories. Here is an example:
http://demo.68classifieds.com/catego...autos-for-sale

That category allows listings but you can see the sub categories above them.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 04-28-2008, 12:11 PM   #8
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 21
Success is on a distinguished road
Default

There's a miscommunication here. Sorry, maybe I didn't explain clear enough.

We are referring to showing the ads from subcategories, on their parent categories index page.

For example, my Car category will be closed. But I want the Car category to show the ads from the subcategories of Ford, Honda, BMW...

I will be doing like this member is doing Categories

My main categories will act like headers, ad posting is only allowed in subcategories.

But I want the main category to show ads from subcategories.

How to do this?

Thanks.
__________________
Using V4++ Developer... and loving it.

Last edited by Success; 04-28-2008 at 12:20 PM.
Success is offline  
Old 04-28-2008, 12:19 PM   #9
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
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 Success View Post
There's a miscommunication here. Sorry, maybe I didn't explain clear enough.

We are referring to showing the ads from all subcategories, on their parent category pages.

For example, my Car category will be closed. But I want that page to show the ads of Ford, Honda, BMW...

I am looking for this also.

So you want hundreds of ads all displayed on a single page?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 04-28-2008, 12:24 PM   #10
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 21
Success is on a distinguished road
Default

No, because you can set the number of ads to be displayed on each page right?
__________________
Using V4++ Developer... and loving it.
Success is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
V4 Changes Eric Barnes Technical Support 24 11-12-2007 02:35 AM
Show Top Listings On Home Page zman78 Templates, HTML, CSS, and Design Help 3 04-21-2006 05:32 AM


All times are GMT -4. The time now is 06:00 AM.


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