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.

Custom ordering of channel lists

February 14, 2012 6:12pm

Subscribe [3]
  • #1 / Feb 14, 2012 6:12pm

    roadRUNN3R

    26 posts

    Is there a way to manually force an order for channel entry lists? None of the options provided by the ‘orderby=’ parameter appear to allow this. I’m trying to order a list of events by the date of the events themselves rather than the publish date.

  • #2 / Feb 15, 2012 11:07am

    roadRUNN3R

    26 posts

    I found a way around this: When editing an entry, you can artificially change the entry date (under the ‘Date’ tab). So if you need a post to be located at a specific point in the list of entries, just enter a date that, for example, immediately follows the post you need it to appear after.

    The REEorder module allowed for easier functionality of this type, but doesn’t appear to have been developed past EE 1.

  • #3 / Feb 15, 2012 1:28pm

    Ian Young

    200 posts

    An easier way would just be to use the “fixed_order” parameter in the Channel Entries tag if you know the order you want to output. It would save on modifying each entry date manually and allow the actual entry date to be used later on. As an example:

    {exp:channel:entries channel="my_channel" fixed_order="5|8|2" sort="asc"}
    ...
    {/exp:channel:entries}

     

  • #4 / Feb 15, 2012 1:39pm

    roadRUNN3R

    26 posts

    Thanks for the suggestion Slippy 😊 I didn’t know you could do that. Although I think in this case it would be more cumbersome because the list in question is dynamically updated every time I post a new event, and using this method I would have to alter the EE tags in every part of the site where the list is called up (the homepage and numerous secondary pages).

    But this is really useful for static lists and I’m sure it’ll come in handy in the future! Thanks :D

  • #5 / Feb 15, 2012 2:42pm

    Ian Young

    200 posts

    It always goes down to the individual use case but other ways of doing things are always useful to know for future reference.

    No problem, happy to help. 😊

  • #6 / Feb 15, 2012 4:28pm

    Dan Decker

    7338 posts

    Hi roadRUNN3R,

    Give Simply Order a look. Seems to be a straight forward and elegant way to your goal!

    Cheers,

  • #7 / Feb 17, 2012 1:40pm

    roadRUNN3R

    26 posts

    Oh, great! This will work. Thanks Dan 😊

    Do you mind if I ask how you found this module? I tried searching on devot:ee before I wrote here but didn’t run across this one.

  • #8 / Feb 21, 2012 8:16pm

    Sean C. Smith

    3818 posts

    roadRUNN3R,

    Glad to see that Dan was able to help you out. I would guess that Dan just did a search of Devot://ee which is an ExpressionEngine partner site with a listing of all known add-ons.

    Is there anything else I can assist you with?

    Sean

  • #9 / Feb 22, 2012 1:24pm

    roadRUNN3R

    26 posts

    No, I’m good Sean 😊 Thanks again!

  • #10 / Feb 24, 2012 2:41pm

    Shane Eckert

    7174 posts

    Hello roadRUNN3R,

    That’s awesome that Dan and Sean were able to help you out!

    We appreciate your participation in the forum!

    Have a great weekend.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases