K2 item - page title extra field not working

  • Andrea
  • Andrea's Avatar Topic Author
  • Away
  • Senior Member
1 week 4 days ago #176938 by Andrea
Hi, as always thanks for the super reliable support.
This time i must be doing something wrong with the pagetitle extra field i tried to set for the new website i'm working on. I previously managaed to do this on other websites but time has passed and i no longer remember the steps.
Anyway i assigned the items of this category ( ) the extra-field "PageTitle", in order to have it used as the browser page title instead of the default one.
I then proceeded to put this in item.php, just below the itemHeader opening tag:

Warning: Spoiler!

But this does not work. Any suggestions?

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
1 week 4 days ago #176941 by Fotis
Did you check if $newtitle returns anything? Just to be on the safe side, you could wrap everything after the $newtitle assignment to an if statement that checks if a value is returned for it...

The only other reason why the <title> would not change is some 3rd party plugin for SEO/meta tags.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory:

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum