PHP Class FluidTYPO3\Vhs\ViewHelpers\Variable\TyposcriptViewHelper

Accesses Typoscript paths. Contrary to the Fluid-native f:cObject this ViewHelper does not render objects but rather retrieves the values. For example, if you retrieve a TypoScript path to a TMENU object you will receive the array of TypoScript defining the menu - not the rendered menu HTML. A great example of how to use this ViewHelper is to very quickly migrate a TypoScript-menu-based site (for example currently running TemplaVoila + TMENU-objects) to a Fluid ViewHelper menu based on v:page.menu or v:page.breadCrumb by accessing key configuration options such as entryLevel and even various wrap definitions. A quick example of how to parse a wrap TypoScript setting into two variables usable for a menu item: {wrap.0}{menuItem.title}{wrap.1} {wrap.0 -> f:if(condition: settings.wrapBefore)}{menuItem.title}{wrap.1 -> f:if(condition: settings.wrapAfter)}
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
Datei anzeigen Open project: fluidtypo3/vhs

Protected Properties

Property Type Description
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface

Public Methods

Method Description
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
render ( string $path = null ) : mixed Render

Method Details

injectConfigurationManager() public method

public injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
return void

render() public method

Render
public render ( string $path = null ) : mixed
$path string
return mixed

Property Details

$configurationManager protected_oe property

protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager
return TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface