Event Calendar / Scheduler
[resolved] Get category dropdown / multiple scheduler (2 posts)

  1. JeremyCh
    Posted 3 years ago #

    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: http://getafinancier.com/danse.jpg


  2. JeremyCh
    Posted 3 years ago #

    Fine, this is solved, I was replacing the wrong end tag.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Event Calendar / Scheduler
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic