PHP 클래스 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)}
상속: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
파일 보기 프로젝트 열기: fluidtypo3/vhs

보호된 프로퍼티들

프로퍼티 타입 설명
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface

공개 메소드들

메소드 설명
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
render ( string $path = null ) : mixed Render

메소드 상세

injectConfigurationManager() 공개 메소드

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

render() 공개 메소드

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

프로퍼티 상세

$configurationManager 보호되어 있는 프로퍼티

protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager
리턴 TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface