roosterben
Peanut Gallery
Karma: 0
Offline
Posts: 2
|
 |
« on: 22 Jan 2009, 07:11 » |
|
Hi All,
I would like to know what is required create a search form which will search events from the Calendar module like the following;
Keyword/s: _____________________ Date From: dd/mm/yyyy Date To: dd/mm/yyyy Category: Food (Drop down list of all Calendar categories)
The idea being the search would combine keywords, date range and category to find matching events and list them in a results page preferably using the "list" (display="list") Calendar module template.
At the moment I have one idea on how to do it; 1. Clone the search module, call it 'advanced search' and create it as a new module following the tutorial from the cmsms site. 2. Modify the search form to add date from, date to and a category (categories from Calendar module) drop down list. Still retaining the exisintg keyword search function. 3. Modify the SQL code which finds matches to include new parameters date from, date to and category.
Just need some advice on whether there is an easier or better way to go about this. The idea is to use the Calendar module and this new advanced search module to build an events portal.
I am a fairly competent PHP developer so I am wondering if someone has done something similar or could point me in the right direction.
Any help or advice would be appreciated.
Thanks, Ben
|