TYPO3 Flow Base DistributionPackagesApplications

Suggestion #28101

SetBrowserTitleViewHelper

Added by Mike Streibl about 4 years ago. Updated about 4 years ago.

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

0%

Category:-
Target version:-
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"/>

History

#1 Updated by Bastian Waidelich about 4 years ago

  • Tracker changed from Feature to Suggestion

Also available in: Atom PDF