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?
"Category Name in Page Title" does not work
-
- Phoca Newbie
- Posts: 3
- Joined: 03 Aug 2014, 16:25
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: "Category Name in Page Title" does not work
Hi, can I see the site where this occurs?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 03 Aug 2014, 16:25
Re: "Category Name in Page Title" does not work
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.
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.
-
- Phoca Newbie
- Posts: 3
- Joined: 03 Aug 2014, 16:25
Re: "Category Name in Page Title" does not work
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.
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.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: "Category Name in Page Title" does not work
Ok
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 100
- Joined: 16 Mar 2014, 13:23
Re: "Category Name in Page Title" does not work
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:
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):
title tag comes with category name at the end.
This could be third party plugin which changes 'sitename_pagetitles' of course. Still not found.
Is the following code is supposed to change <title> tag also:
Code: Select all
$document->setTitle($this->params->get( 'page_title') . ' - '. $this->category->title);
$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) {
This could be third party plugin which changes 'sitename_pagetitles' of course. Still not found.
-
- Phoca Professional
- Posts: 100
- Joined: 16 Mar 2014, 13:23
Re: "Category Name in Page Title" does not work
Plugin Title Manager resets sitename_pagetitles to 0. Shame.
So I switched it off and now PD works as supposed.
So I switched it off and now PD works as supposed.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: "Category Name in Page Title" does not work
Ok
If you find Phoca extensions useful, please support the project