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.

{categories} display order in {exp:channel:entries}

August 30, 2011 10:53am

Subscribe [2]
  • #1 / Aug 30, 2011 10:53am

    Wojtek D

    16 posts

    I am using the channel entries tag to get a set of entries and then the {categories} tag pair to get their categories http://ellislab.com/expressionengine/user-guide/modules/channel/variable_pairs.html#var_categories

    The categories are output in a list ordered by default by category ID, I think.
    I would like to order the output of the {categories} pair according to the custom order I have set up in the Admin > Categories menu in the CP. Is this possible, or indeed is there any way to influence the ordering/sorting of the output of this variable pair?

    Many thanks for any answers.

  • #2 / Aug 30, 2011 9:58pm

    Kevin Smith

    4784 posts

    Hi Wojtek D,

    There’s not a native way to accomplish what you’re looking to do, but you might find a solution in one of the many third-party add-ons that deal with categories.

    If it’s something you’d like to see in the core, might I recommend posting it as a Feature Request?

  • #3 / Aug 31, 2011 8:59am

    Wojtek D

    16 posts

    Thank you, I’ll look into it but probably work around it in some way.

  • #4 / Aug 31, 2011 6:53pm

    Kevin Smith

    4784 posts

    Sounds good. Please do let us know if there’s anything else we can help you with!

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

ExpressionEngine News!

#eecms, #events, #releases