Changing the order of event categories

Home Forums Calendar Products Events Calendar PRO Changing the order of event categories

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #907125
    Peter
    Participant

    I 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

    #907213
    Brook
    Participant

    Nice 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:

    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:

    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

    #907254
    Peter
    Participant

    Hi 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

    #909535
    Brook
    Participant

    Howdy 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

    #909564
    Peter
    Participant

    Hi 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

    #909590
    Brook
    Participant

    Ahh 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

    #940435
    Brook
    Participant

    Since 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Changing the order of event categories’ is closed to new replies.