Question about categories/subcategories

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 19, 2017   (RSS)

By Jesus - April 17, 2017

Hi,

I'm working locally on a business local directory structure and I'm wondering if I can create something like this (I bet I can, I just need some guidance in order to do so).

My goal its to display main categories and just a few subcategories below and the on each category page, all their subcategories at the top of the page. I've a few ideas but I just can't figure it out, in case you want me to share something else, just let me know.

Thanks for pointing me to the right direction.

Jesus

By ross - April 19, 2017

Hi Jesus

Thanks for posting.

What I recommend is starting by having your page only display parent level categories.

That will involve a foreach loop to display each of the parent category names.  

As you loop through each parent level category, you'll need to do a look up for sub categories whose parent number is currently being displayed.

Does that make sense?

Note:  we can set this up pretty quickly for you through consulting :).

Let me know any questions.

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/