How to show only subcategories?

Phoca Gallery - image gallery extension
dezok
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 18 Jun 2015, 19:32

How to show only subcategories?

Post by dezok »

Let's say i have categories as follow:
Food
-Veggies
--Legumes (lots of legumes images here)
--Lettuce (lots of lettuse images here)
-Meat
--Pork (lots of pork images here)
--Beef (lots of beef images here)
-Fruits
--Citrus (lots of citrus images here)
--Grapes (lots of grapes images here)

I have created a menu item (Phoca Gallery » List Of Categories (Categories View)) called food, and I would like to display only first level of subcategories (Veggies, Meat, Fruits). That I managed to do by filtering id of Food category. But I would also like the ability to click on one of these subcategories, and display second level of subcategories that are in the chosen one (in ex. by clicking Veggies I would like to display Legumes and Lettuce). After that I would like to enter the last level of subcategories and see images.

Anyone has a suggestion?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show only subcategories?

Post by Jan »

Hi, I think, then you need to customize the output directly in code:

- load all categories on the site
- hide the subsubcategories with e.g. javascript method
- when you click on subcategory, its subcategories will be displayed - after clicking :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply