Tuesday, 26 May 2020
  6 Replies
  625 Visits
0
Votes
Undo
Years ago I had an edit to list the categories alphabetically in the monthly calendar view vs alphabetically by event, it involve changing the sort of an array.
I switched to Flatplus recently and lost this functionality. Can you point me to which file in Flatplus I would need to modify so the category's sort top to bottom alphabetically instead of events

Thanks
Steve
4 years ago
·
#216349
0
Votes
Undo
This is what I added to the calendar_body.php file per Geraint's guidance.


usort($currentDay["events"],"sortjeventsbycat");


I have tried it in flatplus but the categories are still not sorting. Any guidance would be appreciated.
4 years ago
·
#216363
0
Votes
Undo
Try it in calendar_responsive.php

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

4 years ago
·
#216375
0
Votes
Undo
Thanks Tony
Steve
4 years ago
·
#216376
0
Votes
Undo
Very welcome Steve!

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

4 years ago
·
#216386
0
Votes
Undo
Sorry, Tony I was mistaken it didn't fix the issue.


//Sort by category
usort($currentDay["events"], "sortjeventsbycat");

$event = & $currentDay["events"][$i];

I tried sorting the events by cat but it doesn't seem to be working, this is in the responsive file about line 100

There is a sort occurring just prior to this I wonder if it could be modified to sort by date and cat?


// I need to sort the events by start date order (not start time on the day)
usort($this->data["dates"][$dn]["events"], array($this, "sortjevents"));


Thanks again for the help
Steve
4 years ago
·
#216389
0
Votes
Undo
Can you provide login details and FTP and I'll get it sorted

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.