End Date/time – display end time but not end date (for single day events)?

Home Forums Calendar Products Events Calendar PRO End Date/time – display end time but not end date (for single day events)?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25598
    Nathan
    Member

    I know it’s possible to exclude the end date/end time in the advanced upcoming widget, but I’m wondering if the following is possible: it would be ideal to display the event end time WITHOUT the end date if the event is a single day event (as all of my client’s initial events are and most will be). “October 7, 2012 3pm- October 7, 2012 5pm” is redundant and seems to make people second guess whether the event spans more than one day. “October 7, 2012 3-5pm” would seem a much more “normal” way to display the time.

    #25643
    Barry
    Member

    Hi Nathan, I’m sure this is achievable. It would require some PHP know-how though – if you’re at home tinkering with code then check out our technical docs and in particular the information on template overrides.

    In this case the template you would be interested in is likely to be events-advanced-list-load-widget-display.php … have fun and good luck 🙂

    #25645
    Nathan
    Member

    Thanks, Barry. I lack that PHP know-how you’re referring to, so I’ll just deal with unchecking the end date/time for now.

    #25646
    Barry
    Member

    OK – I mean I don’t want to slam the door in your face. Certainly you’d need to know how to set up custom templates (or have this set up already) – it is fairly comprehensively described in the Themer’s Guide and in this section on views.

    If you can get that far, then you could consider making a change to events-advanced-list-load-widget-display.php as outlined here:

    http://pastebin.com/sBFY1VDi

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘End Date/time – display end time but not end date (for single day events)?’ is closed to new replies.