Modify search module / search Calendar events by Date Range and/or Category

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
roosterben
New Member
New Member
Posts: 2
Joined: Tue Jan 06, 2009 11:31 am

Modify search module / search Calendar events by Date Range and/or Category

Post by roosterben »

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
Michael_DF
New Member
New Member
Posts: 5
Joined: Fri Apr 24, 2009 5:21 pm

Re: Modify search module / search Calendar events by Date Range and/or Category

Post by Michael_DF »

Did you find a result for your problem?
Cause I've got the same problem.

Greetins,
Michael
Post Reply

Return to “Developers Discussion”