TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
KeywordsViewHelper Class Reference
Inheritance diagram for KeywordsViewHelper:
AbstractMenuViewHelper AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
 render ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Protected Member Functions

 keywordsToArray ($keywords)
 
- Protected Member Functions inherited from AbstractMenuViewHelper
 getPageConstraints ($includeNotInMenu=false, $includeMenuSeparator=false)
 
 getPageUids (array $pageUids, $entryLevel=0)
 
 renderChildrenWithVariables (array $variables)
 
 getTypoScriptFrontendController ()
 
- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Protected Attributes

 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Detailed Description

A view helper which returns pages with one of the same keywords as the given pages

Search default starts at the root of the current page tree. With entryLevel this can be adjusted.

= Example =

<ce:menu.keywords pageUids="{0: 1, 1: 2}" as="pages"> <f:for each="{pages}" as="page"> {page.title} </f:for> </ce:menu.keywords>

<output> Page with the keywords "typo3" and "fluid" Page with the keyword "fluid" Page with the keyword "typo3" </output>

Definition at line 42 of file KeywordsViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize ViewHelper arguments

Returns
void

Definition at line 56 of file KeywordsViewHelper.php.

keywordsToArray (   $keywords)
protected

Get a clean array of keywords

The list of keywords can have a separator like comma, semicolon or line feed

Parameters
string$keywordsThe list of keywords
Returns
array Cleaned up list

Definition at line 151 of file KeywordsViewHelper.php.

Referenced by KeywordsViewHelper\render().

Member Data Documentation

$escapeOutput = false
protected

Definition at line 49 of file KeywordsViewHelper.php.