Page 3 of 3

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 08 Mar 2015, 23:58
by Jan
Hi, in 4.1.2 I have changed the code so it will accept the settings of the Joomla!

Code: Select all

if (empty($title)) {
			$title = htmlspecialchars_decode($app->getCfg('sitename'));
		} else if ($app->getCfg('sitename_pagetitles', 0) == 1) {
			$title = JText::sprintf('JPAGETITLE', htmlspecialchars_decode($app->getCfg('sitename')), $title);
			
			if ($this->tmpl['display_cat_name_title'] == 1 && isset($this->category->title) && $this->category->title != '') {
				$title = $title .' - ' .  $this->category->title;
			}
			
		} else if ($app->getCfg('sitename_pagetitles', 0) == 2) {
			
			if ($this->tmpl['display_cat_name_title'] == 1 && isset($this->category->title) && $this->category->title != '') {
				$title = $title .' - ' .  $this->category->title;
			}
		
			$title = JText::sprintf('JPAGETITLE', $title, htmlspecialchars_decode($app->getCfg('sitename')));
		}

So it should be: Page Title (Category Title) - Global Config Site Name or Global Config Site Name - Page Title (Category Title)

Can you let me know which combination is not working for now?

Jan

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 09 Mar 2015, 00:09
by nemmar
Hi Jan,

I hope you're doing well.

Phoca Gallery 4.1.2 is adding the Menu Item title to the front of the Title Tags. The Menu Item should not be in the Title Tags. The only pages on my sites where the Menu Item title is added is on the Phoca pages.

Phoca should use the default Joomla settings in Global Config. So for my site the Title Tags for Phoca should be the Page Title (Photo Title) - Site Name.

Thanks.

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 10 Mar 2015, 00:52
by Jan
Hi, see the code, it can be:

Title - Page title or
Page title - Title

depends on Global configuration of Joomla! :idea:

Jan

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 10 Mar 2015, 01:01
by nemmar
Hi Jan,

I will use it as it is now but it adds the Menu Item title to the front of the page Title Tag which is not the way the rest of my site (non-Phoca pages) work with the default Global Config of Joomla.

It's not a big problem so it's OK. I just thought I would mention it in case there was another bug in it.

Thanks.

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 14 Mar 2015, 00:00
by Jan
Ok, I will take a look at it so it will be similar as possible to the standard Joomla! output.

Jan

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 21 Nov 2015, 04:33
by nemmar
Hi Jan,

I am still finding this same problem with the latest version of Phoca Gallery. I installed these extensions on a testing site:
http://2test-directory.nemmar.net/anima ... s-pictures

com_phocagallery_v4.2.1.zip
mod_phocagallery_image_v4.2.1.zip
mod_phocagallery_menu_v4.1.0.zip
mod_phocagallery_tree_v4.2.1.zip


There is still the problem with the Phoca Gallery pages not using the same Title Tags order as the Joomla Global Config settings. You can reference this post in this thread for the correct Title Tag order:
viewtopic.php?f=1&t=25562&start=10#p100862

Thanks.

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 22 Nov 2015, 01:22
by Jan
Hi, please can you describe me exactly:

- what should be the behavior (all the steps you have done to set it)

- and what is the behavior.

So I can do deeper test?

This what you described: viewtopic.php?f=1&t=25562&start=10#p100862
Is this completely valid, or something changed?

Thank you, Jan

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 22 Nov 2015, 15:35
by nemmar
Hi Jan,

You corrected the problem with the Global Config Site Name being listed first instead of last. That was the main problem with the Phoca Gallery page Title Tags before you fixed it. But it seems that now PG is adding the Menu Item to the beginning of the Title Tags for the PG pages.

Here is an example testing URL:
http://2test-directory.nemmar.net/anima ... boxer-dogs
On that page you can see the Title Tag adds the Menu Item at the beginning:
<title>Animals and Wildlife Photos Pictures - 2797 pet delivery agency boxer dogs - Clone Test Site - www.nemmar.org</title>

I noticed that the rest of my Joomla site pages (non-Phoca Gallery pages) do not add the Menu Item to the beginning of the Title Tags. It's not big problem but maybe it's better not to have the Menu Item added to the front of the Title Tags.

Thanks.

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 27 Nov 2015, 16:29
by Jan
Ok, I have added it to feature request list, to take a look at it (if this should be removed or not)

Thank you, Jan

Re: Title Tag - Website name is before the Phoca Gallery pag

Posted: 07 Dec 2015, 00:00
by Jan
Hi, set in version 4.2.2 - added new parameter: Display Menu Link Title.

Jan