Reordering items in menu

130 views
Skip to first unread message

Václav Novotný

unread,
Apr 23, 2013, 4:55:32 AM4/23/13
to symfony-...@googlegroups.com
Hi, what is the best way how to reorder items in menu?

AFAIK they are printed in the stored order. But what if I want to reorder them alphabetically? What component should I use? 

David Buchmann

unread,
Apr 23, 2013, 5:05:46 AM4/23/13
to symfony-...@googlegroups.com
hi,

you could extend the sonata admin class for menu items to reorder them
alphabetically. have a look at the simplecms admin class where we
reorder by publish date.

its much preferrable to set up the order on store rather than querying
and ordering for each view.

cheers,david
> --
> You received this message because you are subscribed to the Google
> Groups "symfony-cmf-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to symfony-cmf-us...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch

Václav Novotný

unread,
Apr 23, 2013, 6:04:36 AM4/23/13
to symfony-...@googlegroups.com
Thank you David.

It helps me a lot. I was looking for some class which will sort children but in https://github.com/symfony-cmf/SimpleCmsBundle/blob/master/Admin/PageAdmin.php I saw that I must do it myself. 
Reply all
Reply to author
Forward
0 new messages