showing parent title into the folder title

Phoca Gallery - image gallery extension
User avatar
salv.scarfone
Phoca Member
Phoca Member
Posts: 12
Joined: 13 Aug 2020, 09:33

showing parent title into the folder title

Post by salv.scarfone »

Hi to everyone.
I have an huge gallery with a lot of subfolders.
My subfolders structure is like this:

phocagallery/electronics/sony/cd-player
phocagallery/electronics/denon/cd-player


There is a way to show the parent folders into the page title?I have many pages with the same page title!This is bad for seo! The title "cd player" should become "sony cd player".
Why the url structure doesn't display the subfolders structure?

Thanks a lot
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: showing parent title into the folder title

Post by Jan »

Hi, the url structure just display the current category only.

To display title based on all categories/parent categories, the code needs to be customized, because there is no such feature for now :-(

Jan
If you find Phoca extensions useful, please support the project
User avatar
salv.scarfone
Phoca Member
Phoca Member
Posts: 12
Joined: 13 Aug 2020, 09:33

Re: showing parent title into the folder title

Post by salv.scarfone »

Jan wrote: 28 Aug 2020, 15:41 Hi, the url structure just display the current category only.

To display title based on all categories/parent categories, the code needs to be customized, because there is no such feature for now :-(

Jan
how can be customized? thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: showing parent title into the folder title

Post by Jan »

Hi, I didn't do such customization yet, but each view needs to get information about the category tree which will be transformed to title and set as page title.

See:

components/com_phocagallery/views/category/view.html.php - at the bottom, you can see functions which add breadcrumbs (category tree) and function to add title to a page. :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
salv.scarfone
Phoca Member
Phoca Member
Posts: 12
Joined: 13 Aug 2020, 09:33

Re: showing parent title into the folder title

Post by salv.scarfone »

Jan wrote: 28 Aug 2020, 15:52components/com_phocagallery/views/category/view.html.php - at the bottom, you can see functions which add breadcrumbs (category tree) and function to add title to a page. :idea:

Jan
I can't find that link. I'm new to joomala and phoca sorry
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: showing parent title into the folder title

Post by Jan »

Hi, this is not a link, this is the folder and file structure which you will find on your server.

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