View Full Version : Availability Calendar
mat123
08-24-2006, 06:11 PM
Hi, I am working on a holiday rental site and need to have a different calendar for each property that we have so to show its availability. I guess I can add a property_id field to the calendar database but then, how can I make the Easy PHP Calendar to filter the data based on the property_id of my choice? Which files do I have to edit to do such a thing? I will appreciate your help.
Thanks,
Matt
ve9gra
08-25-2006, 07:21 AM
You cannot edit the code of the calendar, it is a closed source script.
What you can do, is use the Category system. Create a category (or modify the existing one) to be "Property". For that category, add all the different properties you have. When you enter a rental date, choose which property this applies to. Then add a calendar to each property's page, but just before the calendar, add the $showCat variable with the property's category ID. That way each property's page will only show the events that are related to that property.
The details on how to find the category ID can be found in the Online Documentation (http://docs.easyphpcalendar.com/) in the Command-Line Variables (http://docs.easyphpcalendar.com/source/Customize/CommandLineVariables.htm) section.
Good luck.
mat123
08-28-2006, 10:26 AM
Thanks for your help, but I would need the categories to be defined on the database. Is that possible?
Brian
08-28-2006, 10:37 PM
You can create a category named Properties. Then under that category, create a selection for each rental property. When you use the Event Manager, user the filter to select which property you want to edit. On your pages, use the filter plug-in or the showCat variable to choose which property calendar to display.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.