LISE subcategories

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
antibart
Power Poster
Power Poster
Posts: 1155
Joined: Sun Aug 17, 2008 9:29 am

LISE subcategories

Post by antibart »

Hi there,

I have lot of categories and subcategories on different pages.

When I'm displaying the category-menu with all categories like this everything works fine:

{LISEmy_instance action='category'}

But when I try zu display only the subcategories of one main category:

{LISEmy_instance action='category' category='main_category' subcategory='true'}

The subcategories are display correctly, but clicking on it shows no results.

The purpose is to filter main categories. Before I've tried it with the search-action and the filter paramater, but that worked only with field definitions, not with categories.

Any hints?

---
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12710
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: LISE subcategories

Post by Dr.CSS »

If it is UL/LI you can use CSS to hide the top level UL maybe?..
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3487
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: LISE subcategories

Post by velden »

antibart
Power Poster
Power Poster
Posts: 1155
Joined: Sun Aug 17, 2008 9:29 am

Re: LISE subcategories

Post by antibart »

Perhaps a fundamental question:

What are the subcategories intended for? What use do they offer if I can't use them to specifically control categories?

I don't mean that disrespectfully. Maybe I just misunderstood something.

...
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1639
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: LISE subcategories

Post by DIGI3 »

I use subcategories quite a lot, they're useful for building navigation. Have you tried adding show_items=true to your LISE tag? You may also need to adjust your category template to make it do what you want.
Not getting the answer you need? CMSMS support options
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3487
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: LISE subcategories

Post by velden »

The subcategories are display correctly, but clicking on it shows no results.
Could you paste such a link here (preferably one linking to a public version of the site)
antibart
Power Poster
Power Poster
Posts: 1155
Joined: Sun Aug 17, 2008 9:29 am

Re: LISE subcategories

Post by antibart »

velden wrote: Wed May 10, 2023 2:49 pm Could you paste such a link here (preferably one linking to a public version of the site)
In the meantime I have decided on a different solution and have already implemented it. But since the topic could be relevant for someone (e.g. myself) at some point, I'll try to reconstruct the topic as detailed as I can do.

-----------------

This is what happens when I DO NOT use subcatgories, only first-level-categories:

{LISEWorkshops action=category}

A category navigation is displayed as desired:

Bass workshops
Guitar workshops
Cooking workshops
Baking workshops

Clicking a category opens an URL generated in this form:
https://my domain .com/workshops/guitar/2/35.html

Everything is fine. All single workshop items in a category are displayed correctly.

-----------------

Now this is what happens when I DO use categoeries with subcategories. Let's say "music" is the main category on first level, bass and guitar are the subcats.

{LISEWorkshops action=category category=music}

A category navigation with all subcategoiers that belongs to "music" is displayed as desired:

music
Bass workshop
Guitar workshop

Up to this point everything is fine.

Clicking a subcategory opens an URL generated in this form:
https://my domain .com/workshops/music/206.1/35.html

...but without any items. It's not a white page, it's just a page without LISE content.

What I've been trying:

I also checked it without pretty URL with the same result.
I tested both category templates: default and hierarchy with the same result.
Single subcategories such as {...category='bass,guitar'} is working, but do not fulfill the purpose of using subcategories.

So maybe there are any difficulties in the generated url in the subcatgegory level?

---
Post Reply

Return to “Modules/Add-Ons”