Category Filter

From Easy PHP Calendar Instructions
Revision as of 15:34, 7 April 2014 by Brian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Category Filter plugin will add a drop-down menu with the primary category name and its selections to a web page. Users will be able to make a selection from this menu that will filter the events displayed on the calendar.

IMPORTANT! The filter code must be added after the mouse-over code. The mouse-over code initializes the variables that the filter code uses.

In the location on a web page where the drop-down list should appear, add the following code:

<?php require("calendar/plugins/filter.php"); ?>

Replace "calendar/" with the actual path to the calendar directory relative to the directory your script is in.