When I add items to my calendar the tplListItem arranges each items on the list, according to the order in which the item is entered (I believe backwards the by the item ID) instead of the next date (or start time). If I entered random dates around the year, then this would arrange the list according to way in which I entered (random dates) instead of the next day that is available.
The problem with this is that it's right next to my calendar. It would make more sense to arrange the list by next available start time. So the list would be arranged in order of date, instead of order entry. Meaning since today is: 3/26 the next item on the list would be... say... 3/27 (If I had an event), then the next one entered would be... say... 3/28 (If event). So you can see the list in order what is up next according by date (in this case: start time).
I could not find anything that relates to this order. Has anyone found or may have a solution?
[ed. note: charless last edited this post 11 years, 8 months ago.]
Please look here:
http://www.pinecovecampground.com/events.html (under- Upcoming Events)
No-one else had this issue or fixed it? I would love to figure out how to change this list order from descending to ascending. Anyone?
-
☆ A M B ☆
- 24,524 Posts
You can't use the &sort and &dir properties for this? According to the
properties list that applies to list view.
-
☆ A M B ☆
- 756 Posts
Quote from: wbbuilder at Mar 28, 2013, 04:34 AMPlease look here: http://www.pinecovecampground.com/events.html (under- Upcoming Events)
No-one else had this issue or fixed it? I would love to figure out how to change this list order from descending to ascending. Anyone?
You can use the &sort=`startdate` &dir=`ASC` in your snippet call to adjust the sorting of events for any view. If you are still having issues turn on the debug parameter &debug=`1` and view the SQL that is rendered for possible resolution and past back if issue persist.
Cheers
Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
Visit
CharlesMx.com for latest news and status updates.
Oh Geez....Thank you both. It was right in front of my face. I looked at that list several times for multiple items, just did not see the ascending parameter. I appreciate both of your time!
Quote from: charless at Mar 28, 2013, 05:29 AMYou can use the &sort=`startdate` &dir=`ASC` in your snippet call to adjust the sorting of events for any view. If you are still having issues turn on the debug parameter &debug=`1` and view the SQL that is rendered for possible resolution and past back if issue persist.
I seem to be having this problem again. I think I was able to fix the problem in list view, but have since changed it to modal view.
My items listed for each day are not organizing by start time, they are organizing by entry time. At least if there is a re-ocurring entry it always shows first.
Here is my calendar snipplet call:
<span class="calendarLeft">[[!mxcalendar?&displayType=`calendar`&ajaxResourceId=`10` &sort=`startdate` &dir=`ASC`]]</span>
I just added the code below to the snipplet (which was missing):
&sort=`startdate` &dir=`ASC`
But my calendar is still not arranging events by start time. This makes my events calendar look unorganized. How can I make these display in order from event start time for each date (including re-occuring events)?