Support » Plugin: Event Calendar / Scheduler » Get category dropdown / multiple scheduler

  • Resolved JeremyCh


    Searching for a solution to have three different schedulers, I found in a post that I can achieve that creating categories, and then using the following code:

    $scheduler .= "
             scheduler._filter_by = '';
             scheduler.filter_day = scheduler.filter_week = scheduler.filter_month = function(id){
                if (!scheduler._filter_by) return true;
                if (scheduler.getEvent(id).category == scheduler._filter_by) return true;
                return false;
             <select onchange='scheduler._filter_by = this.value;scheduler.setCurrentView(scheduler._date);'>
    		 	<option value=''>Toutes</option>
    			<option value='category_0'>Group A</option>
    			<option value='category_1'>Group B</option>
    			<option value='category_2'>Group C</option>

    where the above code will replace $scheduler .= "</script>";

    I tried that, but I don’t see any dropdown there in the page. Am I doing anything wrong, or probably there’s another way to have multiple schedular on the same site ?

    Here is a screen shot of my categories:

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get category dropdown / multiple scheduler’ is closed to new replies.