[Flow] Is there a Views.yaml?
Marc Neuhaus
apocalip at gmail.com
Tue Nov 12 09:54:37 CET 2013
Hey :)
Views.yaml was merged on August 8th, which means it's sadly not in 2.0
which was released July 7th.
It is in the current master and the documentation can be found here:
http://docs.typo3.org/flow/TYPO3FlowDocumentation/latest/TheDefinitiveGuide/PartIII/ModelViewController.html#configuring-views-through-views-yaml
Here are 2 Examples for your exact usecase:
# Change the Paginate Template only inside your "My.Package" package
-
requestFilter: 'parentRequest.isPackage("My.Package") &&
isSubPackage("ViewHelpers\Widget") && isController("Paginate")'
options:
templatePathAndFilename:
'resource://My.Package/Private/Templates/ViewHelpers/Widget/Paginate/Index.html'
# Change the Paginate Template everywhere
-
requestFilter: 'isSubPackage("ViewHelpers\Widget") &&
isController("Paginate")'
options:
templatePathAndFilename:
'resource://My.Package/Private/Templates/ViewHelpers/Widget/Paginate/Index.html'
Cheers
Marc
2013/11/12 Axel Wüstemann <awu at qbus.de>
> Hello
>
> Is there a Views.yaml in Flow 2.0 according to
> https://review.typo3.org/#/c/16392/?
>
> If so, how to use it?
>
> I would like to overright the default widget.paginate template. How I
> could achive that with Views.yaml?
>
> Thank you
> Axel
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>
More information about the Flow
mailing list