68 Classifieds Forums

How to show listings in sub-categories?

This is a discussion on How to show listings in sub-categories? within the v4 Questions & Support forums, part of the Help & Support 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 > Help & Support > v4 Questions & Support

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-19-2008, 10:49 AM
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 6
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
Reply With Quote
  #2  
Old 03-19-2008, 11:07 AM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
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
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 | Twitter
Reply With Quote
  #3  
Old 03-19-2008, 11:09 AM
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 6
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
Reply With Quote
  #4  
Old 03-19-2008, 11:13 AM
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 6
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
Reply With Quote
  #5  
Old 03-19-2008, 11:51 AM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
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
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 | Twitter
Reply With Quote
  #6  
Old 04-27-2008, 01:58 AM
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 8
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.
Reply With Quote
  #7  
Old 04-28-2008, 12:06 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
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
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 | Twitter
Reply With Quote
  #8  
Old 04-28-2008, 12:11 PM
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 8
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.
Reply With Quote
  #9  
Old 04-28-2008, 12:19 PM
Lhotch's Avatar
Moderator
 
Join Date: Mar 2006
Posts: 3,653
Rep Power: 90
Lhotch is just really niceLhotch is just really nice
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.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #10  
Old 04-28-2008, 12:24 PM
Senior Member
 
Join Date: Jul 2007
Posts: 116
Rep Power: 8
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.
Reply With Quote
Reply

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
V4 Changes Eric Barnes v4 Questions & Support 24 11-12-2007 02:35 AM
How to display category total listings? dankellaway v3.1 Questions & Support 2 03-13-2007 02:25 PM
Not all listings show when I "search listings" gabs v3.1 Questions & Support 6 12-29-2006 12:34 PM
Prevent Browse Categories Table for hidden categories free2take v3.0 Questions & Support 3 05-12-2006 11:14 AM
Show Top Listings On Home Page zman78 HTML, CSS, and Design Help 3 04-21-2006 05:32 AM


All times are GMT -4. The time now is 03:01 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22