Event Ordering on Calendar

  • Dan Sajdowitz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 4 months ago #106846 by Dan Sajdowitz
Event Ordering on Calendar was created by Dan Sajdowitz
Is there a way to set the order in which the events are displayed on the calendar?

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #106864 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Ordering on Calendar
Hello Dan

How you want it to be ordered? I guess it should be ordered by date time of the event?

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Dan Sajdowitz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 4 months ago #106905 by Dan Sajdowitz
Replied by Dan Sajdowitz on topic Event Ordering on Calendar
Actually, my client is hoping to be able to manually set the order. In her business, she offers multiple classes and specials (usually no more than three) on a daily basis. She wants her "specials" to appear on the calendar first, followed by one specific class, followed by the other.

Maybe this could be accomplished by adding an optional "sort order" field per event where we could enter 1 for the first event, 2 for the second, 3 for the third, etc? Days with a single event would default to 1 or the filed could be ignored.

Just a thought on how this might be able to be accomplished.

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #106940 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Ordering on Calendar
Hi Dan

Unfortunately, it is not possible. If you want, we can guide you edit code so that event in calendar will be ordered by ordering (which they can change order of events from backend)

Let us know if you want that so that I can send you the modified file

Tuan

Please Log in or Create an account to join the conversation.

  • Dan Sajdowitz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 4 months ago - 8 years 4 months ago #106979 by Dan Sajdowitz
Replied by Dan Sajdowitz on topic Event Ordering on Calendar
Tuan, that would be great, thank you. Do you require my email address? It's my first_name.last_name as it appears here @gmail.com
Last edit: 8 years 4 months ago by Dan Sajdowitz.

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #106997 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Ordering on Calendar
Hi Dan

You can get this file, unzip it, upload to folder components/com_eventbooking/model. After that, events on same date will be displayed in calendar using ordering

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Dan Sajdowitz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 4 months ago #107107 by Dan Sajdowitz
Replied by Dan Sajdowitz on topic Event Ordering on Calendar
Hi, Tuan -

This sort of works. It uses the "ordering" field properly only for events that are at the same time, otherwise, it still uses the event time for ordering.

So if I have 3 events at 6pm and one event at 7pm, but I want to "feature" the 7pm event by having it appear first on the calendar, it doesn't work with ordering, because it's using the time of the event instead.

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #107126 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Ordering on Calendar
Hi Dan

I am sorry, there is a small typo with the code I modified. Please use this updated file, it should work

Regards,

Tuan
The following user(s) said Thank You: Dan Sajdowitz

Please Log in or Create an account to join the conversation.

  • Dan Sajdowitz
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 3 months ago #107190 by Dan Sajdowitz
Replied by Dan Sajdowitz on topic Event Ordering on Calendar
Thanks, Tuan. This works.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #107210 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Ordering on Calendar
Great. Thanks for confirming

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc