PDA

View Full Version : filter


djpobo
06-23-2006, 04:10 AM
:) Hello!
It is possible to add more than 1 code (yellow filter) to the $showCat variable? If yes, do you have exemple.
Best thanks
Pierre - djpobo

Brian
06-23-2006, 09:09 AM
From the Documentation:

$showCat="X";
Filter the list of events by category "X".


Use the Advanced Filter option of the Event Manager to construct specific filters. While viewing the Advanced Filter screen after executing a filter (click Find / Filter then Advanced in the Event Manager), at the end of the yellow Filter table is a code. Add this code to the $showCat variable to perform this filter operation in your own pages. It will appear like "1|4|7 or a|2|5|9".


Add this just before require("calendar/calendar.php");

djpobo
06-24-2006, 11:29 AM
I have 9 categorys

danses Salon - Cours a|4
Soiree dansante a|3
Tango Argentin - Cours a|10
Tango Argentin - Initiation a|14
Tango Argentin - Milonga a|12
Tango Argentin - Stages a|11
X Divers a|15
X Demonstrations a|13
X Evenements a|1

How can I make a filter with more than one code ?
It is possible
If a make a filter with 2 code, I have nothing on my calender

Exemple :
<?php
$MULTI=1;
$epcMultiWidth = "600px";
$epcMultiPad = 10;
$epcMultiNav = "580px";
$epcMultiCol = 3;
$epcMultiRow = 1;
$showCat="a|3|4";
require ("calendar/calendar.php"); ?>

Where is the error ?

Brian
06-25-2006, 09:24 AM
Can you provide a link to your calendar page?

djpobo
06-25-2006, 11:37 AM
the link to my calender page :

http://www.onvadanser.com/1400-calendrier.php

with this configuration

<?php
$MULTI=1;
$epcMultiWidth = "600px";
$epcMultiPad = 10;
$epcMultiNav = "580px";
$epcMultiCol = 3;
$epcMultiRow = 1;
$showCat="a|3";
require ("calendar/calendar.php"); ?>

Brian
06-26-2006, 08:44 AM
Can you detail the categories that you want to set the filter to?

djpobo
06-26-2006, 01:13 PM
I want to set the filter for the categories

Soiree dansante a|3
Tango Argentin - Milonga a|12
X Evenements a|1

Brian
06-26-2006, 01:47 PM
Did you use the Advance filter in the Event Manager to set these options then use the $showCat variable with the result of the advance search on your page? This will filter the events for those categories.

djpobo
06-26-2006, 02:19 PM
Now all it's OK
Thank you for your help