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:
But this does not work. Any suggestions?
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!
<?php
$newtitle= $this->item->extraFields->PageTitle->value;
$document = JFactory::getDocument();
$document->setTitle($newtitle);
?>But this does not work. Any suggestions?