"Category Name in Page Title" does not work

Phoca Gallery - image gallery extension
thompson
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Aug 2014, 16:25

"Category Name in Page Title" does not work

Post by thompson »

Hello,
I have just upgraded my Joomla! website from 2.5 to 3.3.3. I also upgraded my template for the new Joomla and Phoca Gallery. I created a new menu link to Phoca of type List of Images (Category View). The link works nice but when I visit the list of images it does not show me page title at the top of the page (like a headline of an article). I have selected Display for "Display Category Name In Page Title" at menu link settings. So, I do not understand what is wrong.

Can anyone help me, please?

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

Re: "Category Name in Page Title" does not work

Post by Jan »

Hi, can I see the site where this occurs?
Jan
If you find Phoca extensions useful, please support the project
thompson
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Aug 2014, 16:25

Re: "Category Name in Page Title" does not work

Post by thompson »

Unfotunately, not. I am working on full migration of that site offline on my localhost. I can send you a link when I will finish and the site will be updated.

Do you have any other idea what can I try to do to fix it or to find where can be a mistake?

Thank you.

Best regards.
thompson
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Aug 2014, 16:25

Re: "Category Name in Page Title" does not work

Post by thompson »

FIXED!

When creating a new menu link there is a "Page Diplay" bar and a default value for "Show Page Heading" is no. And this is the problem. There should be "yes". It is strange because for example when you creating a link for an article it shows heading even if you have selected no. Tricky.

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

Re: "Category Name in Page Title" does not work

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: "Category Name in Page Title" does not work

Post by plamen »

But that option do not change title tag in the head section of the HTML code.
Is the following code is supposed to change <title> tag also:

Code: Select all

$document->setTitle($this->params->get( 'page_title') . ' - '. $this->category->title);
For all categories I have <title> in the form of "Site_Name-Menu_Item"

$app->getCfg('sitename_pagetitles', 0); returns 0, but my setting is Site name before Page Title, so this variable should be = 1, and for articles this is true, but here - not.

So, if I bypass the following check (\components\com_phocagallery\views\category\view.html.php, row 1986):

Code: Select all

} else if ($app->getCfg('sitename_pagetitles', 0) == 1) {
title tag comes with category name at the end.

This could be third party plugin which changes 'sitename_pagetitles' of course. Still not found.
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: "Category Name in Page Title" does not work

Post by plamen »

Plugin Title Manager resets sitename_pagetitles to 0. Shame.
So I switched it off and now PD works as supposed. :twisted:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: "Category Name in Page Title" does not work

Post by Jan »

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