Page 1 of 1

showing parent title into the folder title

Posted: 28 Aug 2020, 14:50
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

Re: showing parent title into the folder title

Posted: 28 Aug 2020, 15:41
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

Re: showing parent title into the folder title

Posted: 28 Aug 2020, 15:48
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

Re: showing parent title into the folder title

Posted: 28 Aug 2020, 15:52
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

Re: showing parent title into the folder title

Posted: 28 Aug 2020, 15:59
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

Re: showing parent title into the folder title

Posted: 28 Aug 2020, 16:01
by Jan
Hi, this is not a link, this is the folder and file structure which you will find on your server.

Jan