URL and menu / categories structure

Phoca Gallery - image gallery extension
Reddar
Phoca Enthusiast
Phoca Enthusiast
Posts: 58
Joined: 29 Mar 2019, 23:33

Re: URL and menu / categories structure

Post by Reddar »

I try but i have a new issue.

I have only on menu link "2023-55" to categories view.

On the front end, when i have the categories view, if i click on a category without a sub-category it's ok i have the category view.
But if i click to a category with sub-categories (like "Dimanche") i have a empty page.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47902
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: URL and menu / categories structure

Post by Jan »

I can I see the site where this occurrs?

Jan
If you find Phoca extensions useful, please support the project
Reddar
Phoca Enthusiast
Phoca Enthusiast
Posts: 58
Joined: 29 Mar 2019, 23:33

Re: URL and menu / categories structure

Post by Reddar »

https://v4.carnaval-spc.fr/medias/2023-55

I send you the user / password by private message.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47902
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: URL and menu / categories structure

Post by Jan »

Hmm, I don't get any blank page when I click on dimanche: https://carnaval-spc.fr/medias/2023-55/dimanche

BTW there can be more problematic issues there:

1) using numbers in aliases - on some servers such numbers can be confused in ID numbers so it is recommended to not use them
2) as the menu structure is very large, hard to say, but it seems like some menu links or some categories use the same alias, if yes, this should be avoid.

Jan
If you find Phoca extensions useful, please support the project
Reddar
Phoca Enthusiast
Phoca Enthusiast
Posts: 58
Joined: 29 Mar 2019, 23:33

Re: URL and menu / categories structure

Post by Reddar »

I will check the alias.

You didn't get any blank page because you did not use the good address :) .

Check at https://v4.carnaval-spc.fr/medias/2023-55, user id : Jan, password : send by private email.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47902
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: URL and menu / categories structure

Post by Jan »

Hi, the site is redirected to:

2023-55/50-2023-55e/58-dimanche

instead of

2023-55/58-dimanche

So try to find if this is: 50-2023-55e menu link or parent category. Try to avoid using numbers in aliases. Some servers can have problems to differentiate between IDs then :idea:

Jan
If you find Phoca extensions useful, please support the project
Reddar
Phoca Enthusiast
Phoca Enthusiast
Posts: 58
Joined: 29 Mar 2019, 23:33

Re: URL and menu / categories structure

Post by Reddar »

50-2023_55 is the parent category

I made a simple example.

2 menus :

"Election miss 55" (id : 639), type categories view. Filter Parent category id : 51 (2 childs id 53 and 55)
"Soir d'ouverture" (id : 450) type categories view. Filter Parent category id : 38 (2 childs id 40 and 41)

In the front end if i click on "La soirée" (id : 53), the result and the URL is OK.

https://v4.carnaval-spc.fr/?option=com_ ... Itemid=639

In the front end if i click on "Mise en place" (id : 40), the result and but the URL is NOK. The itemid should be 450 instead of 639.

https://v4.carnaval-spc.fr/?option=com_ ... Itemid=639

Now if i change the order of the menu (Soiree d'ouverture / Election Miss 55) the URl are :

https://v4.carnaval-spc.fr/?option=com_ ... Itemid=450
and
https://v4.carnaval-spc.fr/?option=com_ ... Itemid=450

The last one is NOK, i should have itemid = 639 instead of 450.

An hypothesis : for Joomla both menu are identical with the same menu item type. the "Filter Parent Category ID" parameter is not taken into account. And Joomla choose the first itemid in the menu list.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47902
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: URL and menu / categories structure

Post by Jan »

Hi, unfortunately, the selecting of menu item is prior to the options inside the menu link. So if Joomla selects some item first, then it even does not come to second menu link where you have set different options and such are in fact ingnored as such menu link is never loaded.

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