How to display categories level by level, not all on one level

Phoca Gallery - image gallery extension
User avatar
phunsoft
Phoca Member
Phoca Member
Posts: 22
Joined: 06 Sep 2023, 20:32

How to display categories level by level, not all on one level

Post by phunsoft »

This is:
- Joomla 5.3.1 (fresh installation)
- Joomshaper Helix Ultra Template 2.1.2
- Phoca Gallery 5.1.0

I would like to build the gallery using categories and subcategories, following the directory structure below /phocagallery, and I would like the "Galley" menu entry to start the display on the top level categories only. Note that those dont contain images, but are only to organize the subcaregories.

I have created two top level category direcories and a couple of image directories inside each:

Code: Select all

/phocagallery
   |
   +-- Diverses
   |        |
   |        +-- Diverses_A
   |        +-- Diverses_B
   |        
   +-- Konzerte
             |
             +-- Konzert_2014
             +-- Konzert_2015
                 ...
             +-- Konzert_2024
             +-- Konzert_2025
Directories /phocagallery/Diverses, and /phocagallery/Konzerte contain only subdirectories, but no images.

I have added everything via "Multiple Add" feature. So far, so good.

I have added a Joomla menu item of type "List of Catedories", and was expecting the page being displayed when clicking on the menu item to show 2 tiles, one for each (top level category), i.e. "Diverses", and "Konzerte. Clicking on one of these should display one tile for each subcategory *within* that top level category.

I'm not getting this begaviour, have tried man of the settings without success, and an not sure if this is possible at all.

What I get is this:

1. Clicking in the Menu item displays *all* subcategories from both top level categories:
https://i.ibb.co/xS4cQcht/Screenshot-fr ... -05-25.png

2. Clicking on a subcategory tile displays the photos in that subcategory, as desired:
https://i.ibb.co/RTGKXP3v/Screenshot-fr ... -21-30.png

3. Clicking on the "back" button brings me to page that has nothing but another "Back button:
https://i.ibb.co/v6SzRVTS/Screenshot-fr ... -24-18.png

4. Clicking on that button bring me back to the initial display with *all* subcategories:
https://i.ibb.co/xS4cQcht/Screenshot-fr ... -05-25.png

Is my desire feasible at all?

BTW, I tried to follow the help anbout how to add an image. Upon "Submit" i'm getting

Code: Select all

You cannot use certain BBCodes: img.
Thanks

--
Peter

Tags:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9795
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to display categories level by level, not all on one level

Post by Benno »

Hi Peter,
Deine Struktur ist kein Problem:
1.) Erstelle einen Menüeintrag zur Phoca Gallery Komponente vom Typ 'Liste der Kategorien'
2.) Gehe zu: Backend --> Komponenten --> Phoca Gallery --> Kontrollzentrum --> Optionen --> Kategorien-Ansicht -->
und setze:
Unterkategorien anzeigen=Nein
Leere Kategorien anzeigen=Ja
Speichern & Schließen
3.) Gehe zu: Backend --> Komponenten --> Phoca Gallery --> Kontrollzentrum --> Optionen --> Kategorie-Ansicht -->
und setze:
Kategorien in der Kategorie-Ansicht anzeigen=Ja
Speichern & Schließen

Jetzt sollten beim Klick auf Deinen Menüeintrag die beiden Kategorien: 'Diverses' und 'Konzerte' (Kategorien-Ansicht) angezeigt werden und beim Klick auf diese, die enthaltenen SubKategorien (Kategorie-Ansicht).

Freundliche Grüße,
Benno
User avatar
phunsoft
Phoca Member
Phoca Member
Posts: 22
Joined: 06 Sep 2023, 20:32

Re: How to display categories level by level, not all on one level

Post by phunsoft »

Perfekt! Vielen Dank, Benno. Da hätte ich noch lange probieren können.

--
Peter
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9795
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to display categories level by level, not all on one level

Post by Benno »

Gerne!

Freundliche Grüße,
Benno
willyneuhaus
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 May 2024, 09:56

Re: How to display categories level by level, not all on one level

Post by willyneuhaus »

Besten Dank, habe ich auch gerade implementiert! Funktioniert perfekt, das hätte ich nie herausgefunden, zu gut versteckt!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9795
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: How to display categories level by level, not all on one level

Post by Benno »

Prima! :)

Freundliche Grüße,
Benno
Post Reply