[Flow] Package Argument for rendering partials

Bastian Waidelich bastian at typo3.org
Tue Feb 4 10:59:48 CET 2014


Mario wrote:

Hi Mario

> Do you think a custom ViewHelper returning a rendered Template could be
> a way to do this or do you think that´s a dirty way?

That's basically what a widget does.. But I'm curious about your 
scenario. With the custom views configurion[1] you should be able to 
target any action of any (sub)request. And with the *Paths options (e.g. 
"partialRootPaths") you are able to specify multiple fallback paths:

-
   requestFilter: 'isPackage("Some.Package") && isController("Standard") 
&& isAction("foo")'
   options:
     partialRootPaths:
	 'My.Package': 'resource://My.Package/Private/Partials'
	 'Some.Package': 'resource://Some.Package/Private/Partials'

HTH


[1] 
http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/ModelViewController.html#configuring-views-through-views-yaml

-- 
Bastian Waidelich


More information about the Flow mailing list