PDA

View Full Version : Passing showcat parameters via URL ?


ignicoccus
08-27-2007, 10:38 AM
Hi,

I realized, that it is possible, to pass certain parameters via the URL, like:

www.mycalendar.de/calendar.php?showcat=11&mo=6 and so on. I would like to submit an andvanced filter via the URL but this does not seem to work for me

www.mycalendar.de/calendar.php?showcat=11|12|&mo=6

Is this possible with easyphpcalendar ?

My problem is, that I have the main category for my events and another category for trainers. Now I want the user to be able to just see the events for category1 from trainer1 without creating a template for each event and trainer. If set the $showcat=11 (select Trainer1) in my template, every other showcat call is ignored.

Regards

Achim

Brian
08-27-2007, 10:47 AM
Your template will override any URL variables. You should send them via the URL only.

ignicoccus
08-27-2007, 10:50 AM
Your template will override any URL variables. You should send them via the URL only.

Ok, but why does this :
www.mycalendar.de/calendar.php?showcat= (http://www.mycalendar.de/calendar.php?showcat=)11|12|&mo=6 (Filter from event mananger) not work ? Is there another way to pass the advanced filter via URL ?

Brian
08-27-2007, 03:55 PM
It should work...

What database type are you using and what version of the calendar?

ignicoccus
08-27-2007, 04:45 PM
The database is MySQL 4.1.22 and the calendar is 6.3.24b

Brian
08-27-2007, 04:48 PM
Can you open a support ticket, dump and attach your database and your config.inc.php file so I can try to recreate what you're doing locally?

ignicoccus
08-27-2007, 04:53 PM
I will do so

Brian
08-29-2007, 10:36 AM
I took a look at everything and replied but haven't heard anything back. Here is my response:

You're missing part of the filter, specifically the a (for match all). Otherwise it will match any filter criteria.

showCat=a|10|11

Try that.