Page 1 of 1
"Category Name in Page Title" does not work
Posted: 03 Aug 2014, 16:42
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?
Re: "Category Name in Page Title" does not work
Posted: 04 Aug 2014, 10:40
by Jan
Hi, can I see the site where this occurs?
Jan
Re: "Category Name in Page Title" does not work
Posted: 06 Aug 2014, 17:33
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.
Re: "Category Name in Page Title" does not work
Posted: 06 Aug 2014, 17:53
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.
Re: "Category Name in Page Title" does not work
Posted: 06 Aug 2014, 21:10
by Jan
Ok
Re: "Category Name in Page Title" does not work
Posted: 08 May 2015, 23:24
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.
Re: "Category Name in Page Title" does not work
Posted: 08 Nov 2016, 22:45
by plamen
Plugin Title Manager resets
sitename_pagetitles to 0. Shame.
So I switched it off and now PD works as supposed.
Re: "Category Name in Page Title" does not work
Posted: 15 Nov 2016, 14:07
by Jan
Ok