• Home
  • Get help
  • Ask a question
Last post 5 hours 24 min ago
Posts last week 191
Average response time last week 1 hour 50 min
All time posts 68187
All time tickets 10530
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#966 – Page Title not working

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 07 September 2015 16:40 UTC
gvv
 Hello, I need your help please:

I got this persistent problem where the Page Title is most of the times not working properly

I saw this similar situation and already tried it, but making sure the "System- Cache" plugin loads in the LAST position is not solving the problem - http://anything-digital.com/forum/extension/sh404sef/10921-after-enabled-joomla-cache-sh404sef-page-title-won-t-work-right.html

When a form is filled one of the hidden form fields tries to get the current page title with this code, but the majority of the times all it gets is the website title

//<code>
$doc = JFactory::getDocument();
return $doc->getTitle();
//</code>

Can you please help?
Thank you very much in advance, regards

GVV
Tuesday, 08 September 2015 07:52 UTC
wb_weeblr
Hi

sh404SEF so far doesn't use the Joomla document to handle page title, so using $doc->getTitle() is not going to return the sh404SEF page title, only the title set by Joomla, before it's overriden by sh404SEF.
The reason it's that way is of course to be able to override page title set by other extensions. In next version, we have added some code to also set the title earlier in the page rendering process so that it's available for other extensions. This should be released within 2 weeks if all goes well.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.