Home › Forums › Calendar Products › Events Calendar PRO › Changing the order of event categories
- This topic has 6 replies, 2 voices, and was last updated 11 years, 2 months ago by
Brook.
-
AuthorPosts
-
December 3, 2014 at 8:16 pm #907125
Peter
ParticipantI have an issue with category colours not showing on all categories in the month view for the same category. Its a sports website with 3 main organisations each with their own category and then all the sports they facilitate. At present they run in alphabetical order and as many of the sports are all run by each of the three main categories I can set the sports in a child relationship. I have a large list of categories with every event having multiple categories. I have 3 categories that are the key categories marked by colour. If the title does not come first for that event the colour won’t show giving a patchy non consistent effect.
Using the Category Colours Git hub hooks recomendations “Ignoring One or More Categories”I have filtered out all the sports other than the three main categories which works great so is there a way I can set a hook for these three categories (isa, all-schools, nswcis) to list first rather than listing alphabetically so their colour will show? :
// Custom Category colours to ignore by category event slug
if( class_exists( ‘Tribe_Events_Category_Colors’ )) {teccc_ignore_slug(‘afl’, ‘athletics’, ‘baseball’, ‘boys-baseball’, ‘boys-football’, ‘boys-hockey’, ‘cricket’, ‘cross-country’, ‘diving’, ‘girls-basketball’, ‘boys-basketball’,’girls-football’, ‘golf’, ‘hockey’, ‘netball’, ‘pathway-sports’, ‘rugby’, ‘rugby-league’, ‘sailing’, ‘softball’, ‘swimming’, ‘tennis’, ‘thsc’, ‘thsp’, ‘touch-football’, ‘triathlon’, ‘tssc’, ‘volleyball’, ‘water-polo-boys’, ‘water-polo-girls’);
}
The page to view by month is: http://www.isa.nsw.edu.au/events/2015-02/
Regards
Peter
December 3, 2014 at 10:54 pm #907213Brook
ParticipantNice customization, Peter! Looks great.
I want to be sure I follow you. Are you trying to change the sort order of a given day. For instance, on March 11th you have the following three events:
- NSW Schoolboys Cricket Championships
- ISA Representitave 16 years & Under Hockey Nominations Due
- ISA Swimming Carnival
The first one is uncategorized and has no color bar to the left, the second two are yellow/ISA. Are you trying to reorder this so that the uncategorized one comes last? Like this:
- ISA Representitave 16 years & Under Hockey Nominations Due
- ISA Swimming Carnival
- NSW Schoolboys Cricket Championships
You seem to be quite thorough in your explanation, but I still don’t quite follow. Once I do I am glad to help you with sort orders if I can. Cheers!
– Brook
December 3, 2014 at 11:43 pm #907254Peter
ParticipantHi Brook,
Thank you, Im trying to change the order of the event categories. What I found to be happening is that when I use category colours, the colour will only show if its first in the line of selected list of categories. All the events have 2 or more categories selected and of these three that have colours assigned it only shows if that category is first in line. The ideal would be if they were these three parents with all the sports as children but this would mean lots of duplicate categories.
So I was hoping there was a way for these three to be set as the first with all the sports running after these three alphabetically or not.
Hope this makes it more clear.
Regards
Peter
December 5, 2014 at 2:48 pm #909535Brook
ParticipantHowdy Peter,
I apologize, I really wish I understood. It is still unclear. So you are saying that if you use the Filterbar to select multiple categories, only the first one selected has color? Thus you want the first one selected to always be one of the three main categories?
Would it be possible to take a screenshot, maybe with a giant red arrow or some annotations so I can’t misunderstand, showing exactly what list you need reordered? If you need a place to upload a screenshot, my personal favorite is the website snag.gy.
Thank you for putting up with me Peter!
– Brook
December 5, 2014 at 2:59 pm #909564Peter
ParticipantHi Brook,
It looks like the issue may be resolved. I cleared all caches and now I get consistent colours in month view for all the colour categorised events tanks to the ignore categories addition. I just need to go through and make sure all the events are listed so none are being hidden but so far it looks OK.
Many thanks
Peter
December 5, 2014 at 3:37 pm #909590Brook
ParticipantAhh that might explain my confusion. I kept opening up your site, looking through, clicked on category colors, etc. Nothing appeared broken. Thanks for checking in! I’ll leave this topic open for two weeks or so, just in case it’s not fixed. Thanks, Peter.
– Brook
February 5, 2015 at 11:18 pm #940435Brook
ParticipantSince this has gone for a while without a response I am going to archive the topic. However, if you still need help with this or anything else, please feel free to open a new topic. Cheers!
– Brook
-
AuthorPosts
- The topic ‘Changing the order of event categories’ is closed to new replies.
