[Flow] Is there a Views.yaml?

Marc Neuhaus apocalip at gmail.com
Tue Nov 12 10:37:48 CET 2013


You're welcome :)

2.1 is not exactly scheduled yet, but it could come together with Neos
afaik.

if you want to stick to 2.0 for now you can cherry-pick it into your
TYPO3.Flow folder:

    git fetch git://git.typo3.org/Packages/TYPO3.Flowrefs/changes/92/16392/43
&& git cherry-pick FETCH_HEAD

But you'll need this change to TYPO3.Fluid as well (
https://review.typo3.org/#/c/16393/):

    git fetch git://git.typo3.org/Packages/TYPO3.Fluidrefs/changes/93/16393/18
&& git cherry-pick FETCH_HEAD

BTW, i use this little tool to manage my patches to my Flow installation:

https://github.com/mneuhaus/Beard

beard.json

{
    "defaults": {
        "gerrit_api_endpoint": "https://review.typo3.org/",
        "gerrit_git": "git.typo3.org"
    },
    "changes": [
        {
            "name": "[FEATURE] Allow view configuration via Views.yaml",
            "type": "gerrit",
            "path": "Packages/Framework/TYPO3.Flow",
            "change_id": "16392"
        },
        {
            "name": "[FEATURE] Add supportedOptions to templateView",
            "type": "gerrit",
            "path": "Packages/Framework/TYPO3.Flow",
            "change_id": "16393"
        }
    ]
}



Cheers
Marc

2013/11/12 Axel Wüstemann <awu at qbus.de>

> Marc, thank you!
>
> When 2.1 will be released? What should I do? Can I merge a patch. If so,
> I'm sorry...;=) how do I that?
>
> Or is ther another workaround until 2.1?
>
> Regards
> Axel
>
> Am 12.11.2013 09:54, schrieb Marc Neuhaus:
>
>  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
>>
>>


More information about the Flow mailing list