‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject:
TYPO3\CMS\Frontend\ContentObject\AbstractContentObject

Public Member Functions

 __construct (protected ContentDataProcessor $contentDataProcessor, protected StandaloneView $view)
 
string render ($conf=[])
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
 getContentObjectRenderer ()
 
 setRequest (ServerRequestInterface $request)
 
 setContentObjectRenderer (ContentObjectRenderer $cObj)
 

Protected Member Functions

 renderFluidTemplateAssetsIntoPageRenderer (array $variables)
 
 setTemplate (array $conf)
 
 setLayoutRootPath (array $conf)
 
 setPartialRootPath (array $conf)
 
 setFormat (array $conf)
 
 setExtbaseVariables (array $conf)
 
array getContentObjectVariables (array $conf)
 
 assignSettings (array $conf)
 
string renderFluidView ()
 
string applyStandardWrapToRenderedContent ($content, array $conf)
 
array applyStandardWrapToFluidPaths (array $paths)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
 hasTypoScriptFrontendController ()
 
 getTypoScriptFrontendController ()
 
 getPageRepository ()
 
 getPageRenderer ()
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
PageRenderer $pageRenderer = null
 
ServerRequestInterface $request
 
ContentObjectRenderer $cObj = null
 

Detailed Description

Contains FLUIDTEMPLATE class object

Definition at line 29 of file FluidTemplateContentObject.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::__construct ( protected ContentDataProcessor  $contentDataProcessor,
protected StandaloneView  $view 
)

Definition at line 31 of file FluidTemplateContentObject.php.

Member Function Documentation

◆ applyStandardWrapToFluidPaths()

array TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::applyStandardWrapToFluidPaths ( array  $paths)
protected

◆ applyStandardWrapToRenderedContent()

string TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::applyStandardWrapToRenderedContent (   $content,
array  $conf 
)
protected

Apply standard wrap to content

Parameters
string$content‪Rendered HTML content
array$conf‪Configuration array
Returns
‪string Standard wrapped content

Definition at line 321 of file FluidTemplateContentObject.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ assignSettings()

TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::assignSettings ( array  $conf)
protected

Set any TypoScript settings to the view. This is similar to a default MVC action controller in extbase.

Parameters
array$conf‪Configuration

Definition at line 295 of file FluidTemplateContentObject.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ getContentObjectVariables()

array TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::getContentObjectVariables ( array  $conf)
protected

Compile rendered content objects in variables array ready to assign to the view

Parameters
array$conf‪Configuration array
Returns
‪array the variables to be assigned
Exceptions

Definition at line 264 of file FluidTemplateContentObject.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ render()

string TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::render (   $conf = [])

Rendering the cObject, FLUIDTEMPLATE

Configuration properties:

  • ‪file string+stdWrap The FLUID template file
  • ‪layoutRootPaths array of filepath+stdWrap Root paths to layouts (fallback)
  • ‪partialRootPaths array of filepath+stdWrap Root paths to partials (fallback)
  • ‪variable array of cObjects, the keys are the variable names in fluid
  • ‪dataProcessing array of data processors which are classes to manipulate $data
  • ‪extbase.pluginName
  • ‪extbase.controllerExtensionName
  • ‪extbase.controllerName
  • ‪extbase.controllerActionName

Example: 10 = FLUIDTEMPLATE 10.templateName = MyTemplate 10.templateRootPaths.10 = EXT:site_configuration/Resources/Private/Templates/ 10.partialRootPaths.10 = EXT:site_configuration/Resources/Private/Partials/ 10.layoutRootPaths.10 = EXT:site_configuration/Resources/Private/Layouts/ 10.variables { mylabel = TEXT mylabel.value = Label from TypoScript coming }

Parameters
array$conf‪Array of TypoScript properties
Returns
‪string The HTML output

Reimplemented from TYPO3\CMS\Frontend\ContentObject\AbstractContentObject.

Definition at line 64 of file FluidTemplateContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\applyStandardWrapToRenderedContent(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\assignSettings(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\getContentObjectVariables(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\renderFluidTemplateAssetsIntoPageRenderer(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\renderFluidView(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\setExtbaseVariables(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\setFormat(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\setLayoutRootPath(), TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\setPartialRootPath(), and TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\setTemplate().

◆ renderFluidTemplateAssetsIntoPageRenderer()

TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::renderFluidTemplateAssetsIntoPageRenderer ( array  $variables)
protected

Attempts to render HeaderAssets and FooterAssets sections from the Fluid template, then adds each (if not empty) to either header or footer, as appropriate, using PageRenderer.

Definition at line 93 of file FluidTemplateContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\$pageRenderer, TYPO3\CMS\Core\Page\PageRenderer\addFooterData(), TYPO3\CMS\Core\Page\PageRenderer\addHeaderData(), and TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\getPageRenderer().

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ renderFluidView()

string TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::renderFluidView ( )
protected

Render fluid standalone view

Returns
‪string

Definition at line 309 of file FluidTemplateContentObject.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ setExtbaseVariables()

TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::setExtbaseVariables ( array  $conf)
protected

Set some extbase variables if given

Parameters
array$conf‪Configuration array

Definition at line 203 of file FluidTemplateContentObject.php.

References $GLOBALS, and TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\$request.

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ setFormat()

TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::setFormat ( array  $conf)
protected

Set different format if given in configuration

Parameters
array$conf‪Configuration array

Definition at line 190 of file FluidTemplateContentObject.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ setLayoutRootPath()

TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::setLayoutRootPath ( array  $conf)
protected

Set layout root path if given in configuration

Parameters
array$conf‪Configuration array

Definition at line 147 of file FluidTemplateContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\applyStandardWrapToFluidPaths().

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ setPartialRootPath()

TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::setPartialRootPath ( array  $conf)
protected

Set partial root path if given in configuration

Parameters
array$conf‪Configuration array

Definition at line 169 of file FluidTemplateContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\applyStandardWrapToFluidPaths().

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().

◆ setTemplate()

TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::setTemplate ( array  $conf)
protected

Set template

Parameters
array$conf‪With possibly set file resource
Exceptions

Definition at line 112 of file FluidTemplateContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\applyStandardWrapToFluidPaths().

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\render().