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.

Channel Entries: Orderby Activity ?

November 27, 2012 10:26pm

Subscribe [2]
  • #1 / Nov 27, 2012 10:26pm

    Brainwrek

    75 posts

    I need to order my entries with the most recent activity first.  This is a mashup of the orderby=“date|most_recent_comment” parameter— which (unless I’m missing something) does not do what I’m trying to accomplish.

    I need the final result to display like this:

    Entry D - (date 11/27 and 0 comments)
    Entry A - (date 11/22 and 1 new comment on 11/26)
    Entry C - (date 11/24 and 1 new comment on 11/25)
    Entry B - (date 11/23 and 0 comments)

    But orderby=“date|most_recent_comment” doesn’t seem to work this way.  That scheme orders everything by entry_date first and THEN by most_recent_comment.  No good.

    So I guess, I’m looking for an orderby=“activity” parameter.

    Curious to know if there are any plugins or workarounds for this?  I’ve searched Devot:ee and haven’t been able to come up with anything.

  • #2 / Nov 28, 2012 3:03am

    Wouter Vervloet

    758 posts

    I don’t think this is possible out of the box, so you’ll definitely need an extension that reorders you entries based on activity. How fast do you need this functionality, because I could probably make it for you…

    – Wouter

  • #3 / Nov 28, 2012 1:42pm

    Brainwrek

    75 posts

    Hi Wouter.

    Thanks for your input.  I’m not in a mad rush.  Sooner is better, but anytime before Christmas would be outstanding! 

    If you can make the magic happen as I’ve described, I’d like to work out adequate compensation for your time.

    Thanks again,
    ~Jason

  • #4 / Nov 30, 2012 1:54pm

    Wouter Vervloet

    758 posts

    Hi Jason,

    Well… I had something on the shelf that I was able to modify a bit to do exactly what you need, so without further ado:

    https://github.com/AboutWout/activitee.ee2_addon

    Should be pretty straightforward, but if you’re having troubles let me know.

    – Wouter

  • #5 / Dec 01, 2012 2:00pm

    Brainwrek

    75 posts

    Wouter, this is absolutely fantastic.  So simple. So effective.  Perfect.

    Many thanks!

    Do you have a donate button?  PayPal?  I was going to buy a couple of your add-ons at Devot:ee, but I think they’re all free.  =)

  • #6 / Dec 01, 2012 2:12pm

    Wouter Vervloet

    758 posts

    Glad you like it… As Einstein said: “Everything should be made as simple as possible, but not simpler.” 😊

    Yeah… most of my add-ons on Devot:ee have been created out of request on the forums, so it seemed silly to charge for them.

    If you really want, my PayPal account is wouter[at]baseworks[dot]nl.

    – Wouter

  • #7 / Dec 01, 2012 2:43pm

    Brainwrek

    75 posts

    Cool man.  I took care of PayPal for you.

    I will be in touch in the future.  You really impressed me, mate.

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

ExpressionEngine News!

#eecms, #events, #releases