Forum Discussion

vidhyut_arora's avatar
14 years ago

Re-ordering Categories using FreeMarker

I am writing a custom component to list all Categories in the community structure. I want to list the categories in a custom order and not by the Category IDs which is the default sorting.

 

The admin console gives you option to reorder blogs/boards under a category but there is no option to reorder categories under the structure.

 

Is there any way we can custom order the categories using freemarker?

 

Thanks in advance.

2 Replies

  • vidhyut_arora's avatar
    vidhyut_arora
    Advisor
    14 years ago

    Logic for sorting could be one or multiple of the following - 

    1. order by Name

    2. order by ID

    3. order by Name, ID

    4. if I have 4 categories - A, B, C & D; I might want a custom sorting like = C, B, D, A or D, B, A, C

     

    something like want we can do with PL/SQL