[Neos] Menu, especially Chapter Menu sorting

Christian Müller christian.mueller at typo3.org
Mon Jan 6 19:58:59 CET 2014


Hi Patric,

Patric Eckhart wrote:
> Hey,
>
> can I sort the menu entries?
>
> I use this TS:
> prototype(TYPO3.NeosDemoTypo3Org:ChapterMenu) <
> prototype(TYPO3.Neos.NodeTypes:Menu) {
> templatePath =
> 'resource://My.Site/Private/Templates/NodeTypes/ChapterMenu.html'
> attributes.class = 'chapter-menu'
>
> sorting = DESC #does not work :-(
> }

as of now a "sorting" property is not implemented for the Menu. You 
could however change the implementation and sort the data yourself if 
you need that feature.

If you just want to reverse the order you can do that in the fluid 
template by using the "reverse" argument of the for viewhelper.

Cheers,
Christian


More information about the Neos mailing list