Page 1 of 1

LISE subcategories

Posted: Tue May 09, 2023 1:38 pm
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?

---

Re: LISE subcategories

Posted: Tue May 09, 2023 5:32 pm
by Dr.CSS
If it is UL/LI you can use CSS to hide the top level UL maybe?..

Re: LISE subcategories

Posted: Tue May 09, 2023 7:27 pm
by velden

Re: LISE subcategories

Posted: Wed May 10, 2023 7:23 am
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.

...

Re: LISE subcategories

Posted: Wed May 10, 2023 1:04 pm
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.

Re: LISE subcategories

Posted: Wed May 10, 2023 2:49 pm
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)

Re: LISE subcategories

Posted: Thu May 11, 2023 8:16 am
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?

---