Keyword

K2 item - page title extra field not working

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • Senior Member
More
2 months 2 weeks 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 ( valpelliceoutdoor.it/attivita/trekking/bobbio-pellice ) 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
More
2 months 2 weeks 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: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
1 month 4 weeks ago #177035 by Nathan
Hi Fotis,

A piggy back question on this topic... if I customise the Page Title via this method will the Open Graph title also be updated?

Thanks

Nathan

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #177043 by Fotis
No, because it's created before the template renders. You'll need to override that meta tag as well.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
1 month 3 weeks ago #177048 by Nathan
Thanks Fotis, that makes sense.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #177050 by Fotis
You're welcome.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


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