Events in Dashboard – Need sort option "By Date Added"

Home Forums Calendar Products Events Calendar PRO Events in Dashboard – Need sort option "By Date Added"

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #903263
    Glenn
    Participant

    Hi – How can we set it up so that the events listed in the “Event” view of the dashboard are by default sorted with the latest one added at the top? When adding multiple events – when just a small thing changes from week to week it would be great to find the last one easily without jumping through hoops. (Also a duplicate button on the event would be nice too!)

    Regards,

    Glenn

    #903390
    Brook
    Participant

    Howdy glennpackham,

    That is an interesting notion. First of all about the duplicate button. What are you trying to use that for? Are you basically trying to create a recurring event that does not fit into the usual patterns like first Monday of every month? If so, we are soon releasing a feature that will allow “free form” recurrences. i.e. you can pick any day that you want a recurrence to happen on, and add as many of those as you want.

    If instead you just want a duplicator, you might try the “Post Duplicator” plugin in the wp.org plugin repository. A few of our users have had success with that.

    Finally, I can see why you want to sort by the puhblish date instead of a start date. Unfortunately to do that will require a fair bit of program. It’s totally possible, you just have to know how to tamper with SQL queries a little bit. Checkout the file /lib/apm_filters.php. You would need to create a duplicate and renamed copy of the class ECP_APM_Filters, then unhook the current one from WP Actions its associated with. Now you could add the publish date to the list of filters, and it make it sort by the by default.

    Does that all make sense? Does that answer your questions? I am happy to expound or do whatever I can to further assist. Cheers!

    – Brook

    #903412
    Glenn
    Participant

    Hi!

    There was an event that was every friday – The lineup changed each friday so I wanted an easy way to duplicate the “Bulk” of the information and then amend the lineup.

    EG see links below:
    http://onin.melbourne/event/coburg-night-market/
    http://onin.melbourne/event/coburg-night-market-2/
    etc

    Regarding the publish date – if you look at the venues you will notice that this is how it is done. I’m not even sure what *random* order the events is in. 😛

    Regards,

    Glenn.

    #905602
    Brook
    Participant

    Howdy glennpackham,

    There was an event that was every friday – The lineup changed each friday so I wanted an easy way to duplicate the “Bulk” of the information and then amend the lineup.

    Good to know!

    Regarding the publish date – if you look at the venues you will notice that this is how it is done. I’m not even sure what *random* order the events is in. :P

    Just in case you did not know, in the backend you can sort the events by a few different order by clicking on the column header. Unfortunately Publish date is not among them, and would have to be added via code like I outlined above.

    Does that answer all your questions here? I am happy to expound or answer followups. Cheers!

    – Brook

    #905796
    Glenn
    Participant

    FYI – In case you haven’t worked out I’m new at all this…

    I resolved the sort issue I was having by changing the file: tribe-event-query.class.php
    Looked for line: $query->set( ‘order’, ‘DESC’ );
    Changed to: $query->set( ‘order’, ‘ASC’ );

    And it seemed to do what I was looking for.

    I understand that if your plugin is updated this change is lost and I have vaguely got my head around putting the file in my theme but future updates might be important. Maybe you were trying to tell me the correct way to do it above, but it kinda went over my head. Feel free to give me a rap over the knuckles for bad practice and enlighten me a little more on the correct way to do it. (I normally only need to be told 2 or 3 times and then I can work it out for myself!) 🙂

    Maybe this could be included in future update if it doesn’t screw anything else up. (Although I fell it might – I guess I’ll find out the hard way.)

    Thanks.

    Glenn.

    #905800
    Glenn
    Participant

    Scrap my last comment! I thought it was too easy. It was just a coincidence that the last event I added was first in the list. :'(

    I’ll go stand in the corner now…

    Glenn.

    #906636
    Brook
    Participant

    Sorry Glenn! I was trying to tell you the “proper” way to do that above. This will be generally maintained after plugin updates:

    Unfortunately to do that will require a fair bit of programming. It’s totally possible, you just have to know how to tamper with SQL queries a little bit. Checkout the file /lib/apm_filters.php. You would need to create a duplicate and renamed copy of the class ECP_APM_Filters, then unhook the current one from WP Actions its associated with. Now you could add the publish date to the list of filters, and it make it sort by the by default.

    I totally understand if that is confusing. It is not the easy modification to make unfortunately, and thus can sound confusing. That leaves us two options:

    1. Suggest this as an official feature to our plugin, via our feature suggestion board. This allows other to vote their support easily. Then we wait and hope it get’s enough support to get implemented.
    2. Hire someone to write this for you. You are certainly not the first individual with a great idea for a modification, but not the knowhow to make it. To that end we do keep a list of capable freelancers who are familiar with WP and our plugin. We will happily send you that list if you request it from pro @ this website.

    It is worth mentioning that at some point in the future we might actually remove that filter area from the admin, which is also known as APM. As that link shows it is technically a separate plugin. Were we ever to do this we would certainly strive to make it as easy as possible for user to setup that separate plugin and thus keep current functionality. I bring this up because if that happens your code might require some small updates to continue working. If you hire a dev or do it yourself, it is good for you to have as much advanced warning as possible in case that happens.

    Does that all makes my good Glenn? Would any of those options work?

    – Brook

    #939872
    Brook
    Participant

    Since this thread has gone for a bit of a spell without an update, I am going to archive it. However should you need to continue this thread, or if you have any other questions, please open a new thread. We will be happy to help.

    Cheers!

    – Brook

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Events in Dashboard – Need sort option "By Date Added"’ is closed to new replies.