Filter category menu
3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 12, 2014 (RSS)
By gversion - August 8, 2014
Hello,
My website has 1000+ manufacturers and 500+ categories (with sub-categories) and 4,000+ listings.
I would to add a side menu to the category list page so that users can filter the results by manufacturer and by sub-category. Next to each filter option I would like each filter option to display the listing count in brackets. For example, "Manufacturer X (203)".
Is this something that I can do out of the box with cmsBuilder or do I need to have this custom coded?
I would be very grateful for anyone could share their experiences doing something similar and advise on how to make sure the code performs fast and efficiently.
Regards,
Greg
By Damon - August 11, 2014
Hi Greg,
Here is a post with details about how to find the number of records for each category and then displaying that number:
https://www.interactivetools.com/forum/forum-posts.php?Showing-number-of-listings-next-to-link-for-predetermined-search-78400
Example: Category Name (34)
When you choose the category for each record, are you saving the category name or category number?
Also, for each record is it a single option for category or multi-select for category?
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
By gversion - August 12, 2014
Hi Damon,
Thanks so much for referring me to the other forum link.
I am using the 'num' field for the Category value and it's only a single option for category not multi-select.
It seems that my current code is just taking too long to figure out how many records are in each category and so the page is taking ages to load and I also receive PHP memory errors.
I have sent a message to your consulting email address as I think it's best you guys just set this code up for me as you'll know the best way to handle it. I hope to hear from you soon!
Thanks again,
Greg