Suggestion #28101

SetBrowserTitleViewHelper

Added by Mike Streibl over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Start date:
2011-07-12
Due date:
% Done:

0%

Estimated time:
Has patch:
Tags:

Description

You can overwrite the browsertitle with variables from your extension.

<?php
class Tx_DlExt_ViewHelpers_SetBrowserTitleViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractConditionViewHelper {

    /**
     *    @param string $browsertitle The name of browser title
     */
    public function render( $browsertitle ) {
        $GLOBALS['TSFE']->page['title'] = $browsertitle;
    }
}
{namespace dl=Tx_DlExt_ViewHelpers}
<dl:setBrowserTitle browsertitle="{myVar} in {myVar2} - My Title"/>

#1

Updated by Bastian Waidelich over 10 years ago

  • Tracker changed from Feature to Suggestion

Also available in: Atom PDF