Setting the page title from a plugin


/ Published in: PHP
Save to your folder(s)

The following snippet assumes a Typoscript option named "substitutePageTitle". When set, the page title will be dynamically generated.


Copy this code and paste it in your HTML
  1. if($this->conf['substitutePageTitle']==1){
  2. $GLOBALS['TSFE']->page['title'] = $this->getTitle();
  3. $GLOBALS['TSFE']->indexedDocTitle = $this->getTitle();
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.