Page 1 of 1

Breadcrumps

Posted: 15 Jan 2020, 22:06
by Reddar
Here what i have :

Accueil /Medias / 2020 - 52 ième / Soirée d'ouverture / 2020 - 52 ième /Election Miss 52 /Mise en place

corresponding to

""patvinc.carnaval-spc.fr/medias/2020-52-ieme/soiree-d-ouverture/category/25-mise-en-place"

Is it possible to get

Accueil /Medias / 2020 - 52 ième / Soirée d'ouverture /Election Miss 52 /Mise en place

In other words i would like to suppress the categories link from the breadcrumbs.

There is a parameter

Menus > My menu > gallery > Options > Display Category Name in Breadcrumbs > Select xxx

But whatever the selection nothing is modified.

In the Phoca Download 3.1.5 Released you write : "Added new parameter: Disable Breadcrumbs (Category View)" but i didn't find it !

Thank"s for your help.

Re: Breadcrumps

Posted: 16 Jan 2020, 10:09
by Benno
Hi,
In the Phoca Download 3.1.5 Released you write : "Added new parameter: Disable Breadcrumbs (Category View)" but i didn't find it !
You have posted to the Phoca Gallery Forum, but you talk about Phoca Download Component right?
If yes, see image:
Image

Kind regards,
Benno

Re: Breadcrumps

Posted: 16 Jan 2020, 10:20
by Reddar
Oups ! I've made a mistake. Forget my last sentence.

I'm using only Phoca Gallery, not Phoca Download.

The issue is only with Phoca Gallery.

The line "Accueil /Medias / 2020 - 52 ième / Soirée d'ouverture / 2020 - 52 ième /Election Miss 52 /Mise en place" is the breadcrumbs.

I would like to suppress the second "2020-52 ième / Election Miss 52" which are the category parent name. The first two are the menu name.

It seems to be linked to the "function _addBreadCrumbs($rootId, $displayStyle)" in the view.html.php file, but i am not enough familiar with PHP to make the good modification.

The second point is how to suppress category in the URL ""patvinc.carnaval-spc.fr/medias/2020-52-ieme/soiree-d-ouverture/category/25-mise-en-place".

I've read some post on the subject but didn't find a solution.

Re: Breadcrumps

Posted: 16 Jan 2020, 21:17
by Jan
Hi, the category string is here to differentiate between ID of category and ID of file (Phoca Download)/image (Phoca Gallery) so the string is necessary. It can be renamed with modification:

https://www.phoca.cz/documents/2-phoca- ... t/511-tips (3)

In the breadcrumb function there is a foreach which addes each items to the breadcrumb, so there must be some if conditions and skip adding of items you need. :idea:

Jan

Re: Breadcrumps

Posted: 17 Jan 2020, 00:23
by Reddar
Ok.

For the category i won't make any modification.

For the breadcrumbs i've modified the php file, so i don't have double name anymore.

Thanks for your help.

Patrice

Re: Breadcrumps

Posted: 19 Jan 2020, 23:29
by Jan
Ok