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?
---
LISE subcategories
Re: LISE subcategories
If it is UL/LI you can use CSS to hide the top level UL maybe?..
Re: LISE subcategories
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.
...
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
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
Re: LISE subcategories
Could you paste such a link here (preferably one linking to a public version of the site)The subcategories are display correctly, but clicking on it shows no results.
Re: LISE subcategories
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?
---