Hierarchical menues & breadcumb path

Phoca modules - support for all Phoca modules except Phoca Gallery modules
User avatar
KarEm
Phoca Professional
Phoca Professional
Posts: 154
Joined: 20 Dec 2015, 21:25

Hierarchical menues & breadcumb path

Post by KarEm »

Hi there,

I'm encountered with two problems to which I still haven't found a solution.

One refers to hierarchical menues and the representation of the menue selection sequence in the breadcumb path, the second one adresses
the order of the menue entries generated by the Phoca Gallery Tree Module as described below.

Menue:

Gallery
..|-Events
..|-Travels
..|-Topics
......|-Structures
......|-Colours


Breadcumb-Path:
By selecting consecutively the following menue entries:

1) Events - Path: Aktuelle Seite: Startseite > Gallery > Events (ok)

2) Topics - Path: Aktuelle Seite: Startseite > Gallery > Events > Topics (not ok, because Events and Topics are on the same menue
hierarchy level and Events should be replaced by Topics)

3) Structures - Path: Aktuelle Seite: Startseite > Gallery > Topics > Structures (ok)

4) Topics - Path: Aktuelle Seite: Startseite > Gallery > Topics > Structures > Topics (not ok, because Topics is concatenated a second
time to the path)

5) Travels - Path: Aktuelle Seite: Startseite > Gallery > Travels (ok)


6) If the Topics menue is selected directly (without a previous selection of another menue (e.g. Events)):
Path: Aktuelle Seite: Startseite > Gallery > Topics (ok)


Menue Option Definition:
Display Menu Link Title: Anzeigen
Kategorie Name im Seitentitel anzeigen: Anzeigen
Display Category Name in der Pfadanzeige: Menü Inhalt Titel


It seems to me there are two strange behaviors:
- in case of hierarchical menues and by selecting the menues in the following order: first Events next Topics (according to 1-2)
- in case of hierarchical menues and by selecting the menues in the following order: first Events next Topics next Structures next Topics
(according to 1-4)


Could someone please explain to me on how I can achieve the desired functionality?



Phoca Gallery Tree Module:

Could someone please give me an advice on how I can make the menue items generated by the Phoca Gallery Tree Module in an alphabetical order.


Configuration:
- Joomla 3.4.8
- Phoca Gallery: 4.2.2
- Phoca Gallery Tree Module: 4.2.1


Many thanks in advance

KarEm
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hierarchical menues & breadcumb path

Post by Jan »

Hi,

Tree Module: see modules/mod_phocagallery_tree/mod_phocagallery_tree.php - there you can see the ordering - it is ordered by ordering (as the tree should be ordered by levels and ordering) - you can change/customize the SQL query in this file.

Menu links - normally, only the last category (the displayed one) should be displayed in path - if you get different behavior, maybe this can be caused by more instances of menu links to gallery - do you use more menu links for Phoca Gallery?

Jan
If you find Phoca extensions useful, please support the project
User avatar
KarEm
Phoca Professional
Phoca Professional
Posts: 154
Joined: 20 Dec 2015, 21:25

Re: Hierarchical menues & breadcumb path

Post by KarEm »

Hi Jan,

I've just seen your reply, many thanks. In the last few days I was very busy
with a different topic, so no time left for the homepage.

Before that, I have done a few tests and I have achieved a partial solution.

The Breadcumb-Path looks now as expected and the order of the Tree Module
entries as well.

I have achieved this by defining one menue entry named "HOME" of type "Phoca
Gallery". In addition I defined a component "Galery" and subordinated a few
subcomponents (e.g. Events, Travels, Topics), subordniated to "Topics" I
defined e.g. Structures, Colours,...

Menue entries as well as Breadcumb-Path work as expected.


Currenty only two points are still open:

1. Headline
Up to now I was not able to insert a headline above the "categorie view -
description" (Phoca Gallery options) which is not propagated to all
subordinated Gallery pages.

My intention is to caption every page with a distinct headline (e.g.
Page: Homepage - headline: Home, Breadcumb-Path: Startseite
Page Fauna - headline: Fauna, Breadcum-Path: Startseite > Galery > Fauna

How can I get this behavior?


2. Links
Subcategories below "Galery" (e.g. "Themen" subnordinated to "Galery"
respectively "Gelb" subordninated to "Themen") are not defined as links.

Is there an option to define them as links as well?

Is the approach as described above ok? Any advice is highly welcome.

I hope I've understood you correctly and have answered your question.


Many thanks in advance

KarEm
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hierarchical menues & breadcumb path

Post by Jan »

Hi,

2) can you paste a screenshot? Subcategories should get normal link :idea:

1) You can set that the category name will be displayed as heading - heading can be set in Options of menu link to Phoca Gallery or it can be customized directly in the code:

components/com_phocagallery/views/category/tmpl/default.php :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
KarEm
Phoca Professional
Phoca Professional
Posts: 154
Joined: 20 Dec 2015, 21:25

Re: Hierarchical menues & breadcumb path

Post by KarEm »

Hi Jan,

in my last posting I wanted to insert a few images but I don't know how.

Please advice

Thx
KarEm
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Hierarchical menues & breadcumb path

Post by christine »

Hi KarEm,

screenshots with e.g.:
http://imgur.com/
http://imageshack.com/

Kind regards, Christine
User avatar
KarEm
Phoca Professional
Phoca Professional
Posts: 154
Joined: 20 Dec 2015, 21:25

Re: Hierarchical menues & breadcumb path

Post by KarEm »

Hi Christine,

thanks for your tip.

Is there no other option? What about (taken from the FAQ):
"Can I post images?
Yes, images can be shown in your posts. If the administrator has allowed attachments, you may be able to upload the image to the board....."

Kind regards
KarEm
User avatar
KarEm
Phoca Professional
Phoca Professional
Posts: 154
Joined: 20 Dec 2015, 21:25

Re: Hierarchical menues & breadcumb path

Post by KarEm »

Hi,

I would like to come back to the requested screenshoots.

1. Headline
As I already wrote, my intention is to caption every page with a distinct headline (e.g.
Page: Homepage - headline: Home, Breadcumb-Path: Startseite
Page Fauna - headline: Fauna, Breadcum-Path: Startseite > Galery > Fauna

Image

Image

If I set in the Options menue link to "Home" (top level menue entry) that the category name should be
displayed, this name is propagated to all subordinated categories.

Image

Image

If I define a Seitenüberschrift/page headline (tab: Seitenanzeige/Page view) to "Home" with the name "Home" in addition,
then this page headline will be used instead the name of the category name BUT this page headline will be
propagated as well.

Image


2. Links
Subcategories below "Galery" (e.g. "Themen" subordinated to "Galery"
respectively "Gelb" subordninated to "Themen") are not defined as links.

Image

I hope this posting describes more clearly what I want to achieve and what I got instead.

Any advice is highly welcome.

Kind regards
KarEm
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hierarchical menues & breadcumb path

Post by Jan »

Hi, yes, there are menu link options and if you set them, then their settings works for whole tree.

If you set menu link to categories - then the menu link is active when you go from categories - to category - to image and back - the title or heading settings works for whole tree. I think the only one way is to customize it and do specific heading handling for each view :idea:

- directly in the code or per override in template :idea:

- tree and links - hmm, I think this is more a question on javascript developer of the tree :-( Not sure if this is possible way to change the parent category to link as its function is to open the subcategory tree - so there are possible way of parent category link:

a) to link to category
b) or to open subcategory tree

and seems like the author of the tree javascript selected the b) :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
KarEm
Phoca Professional
Phoca Professional
Posts: 154
Joined: 20 Dec 2015, 21:25

Re: Hierarchical menues & breadcumb path

Post by KarEm »

Hi Jan,

thanks for your reply.


Regarding "1. Headline":
Jan wrote: - directly in the code or per override in template :idea:
could you please point my to a template, where I can study this override principle?

Regarding "2. Links":
Jan wrote:Not sure if this is possible way to change the parent category to link
I'm not sure if I got your point.

If I either click the directory symbol or the "Gallery" link the category "Gallery" will be opened and the sub-categories will be shown (see
screenshot 1 above).

If I click the image "Menck" (the yellow excavator) the sub-subcategorie "Gelb" opens and I can
view the contained images.
But I can not click the "Gelb" designation below the image (marked with the rectangle)
because "Gelb" is not a link (see screenshot 6).
I would expect the same response to a similiar interaction just as visible in screenshot 1.
Please consider, that the image with this yellow excavator is contained in the sub-subcategory
"Gelb" and is set to not authorized.

I've carried out some tests and got the impression that sub-subcategories are treated
differently.

Kind regards
KarEm
Post Reply