Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Custom sorting in CMS interface

$
0
0

Hello fellas!

I have created a automatic map structure for a pagetype called news through a event listner. The structure is based on (Type/year/month/news). However I have problems solving the sorting for the month folders. I want it to be sorted by month (January, February, Mars etc), in the picture you can see the news containers are in the wrong order. I discovered there is built in functions for sorting by created date and alfaphatic order. But I haven't found anything for custom sorting. I have added a field in the NewsContainers for the sort order. Do someone know how to handle custom sorting? Let me know if I need to provide more info.



NewsContainer:


Viewing all articles
Browse latest Browse all 9076

Trending Articles