ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Help with ordering of Categories and subcategories on side-navigation

August 20, 2007 1:03am

Subscribe [2]
  • #1 / Aug 20, 2007 1:03am

    Matt Lemsing

    1 posts

    Hi all,

    I have a resources download page that has the navigation in the left hand navoigation, and then displays the content in the left frame based upon the category chosen in the menu. Page can be seen here:-
    http://www.duralanglican.org.au/index.php/resources/

    I need to be able to order the navigation menu such that…
    * the parent categories are in a set order
    * but the child categories are ordered from most recently created to oldest

    In the example of the “Sermons and Talks” sub-category, this would mean that as new sub cagtegories are created each month or so, the new sermon series would be displayed at the top of the navigation list etc.

    Below is the current code driving the navigation menu. Any help on how I would accommodate this type of ordering would be very appreciated.

    Cheers,
    Matt

    Sidebar Navigation
    ******************

    <div id="resourcessidebar">
    
    {exp:weblog:categories weblog="resources"  rdf="off"}
         <a href="http://{path=resources/download}">{category_name}</a>
    {/exp:weblog:categories} 
    
    </div>
  • #2 / Aug 21, 2007 9:12am

    silenz

    1651 posts

    There’ll be no easy way to achieve this automatically.

    Wouldn’t it be sufficient to order the categories manually?

    Goto
    CP Home ›  Admin ›  Weblog Administration ›  Category Groups
    Pick the category group in question.
    Scroll to the bottom of the list.
    Set “Master Sort Order” to “Custom”.

    Then you manually order the categories by moving them up or down with the arrow-images. Order the parent categories any way you like. And whenever you create a new subcategory just move it to the top position in it’s branch.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases