I`m trying to make a calendar block with clickable dates. this is for a guest house to make reservations.Clicking on date would take to /node/add/my_event/2009-06-05 or /node/add/my_event/?date=05-05-2009 or similar. I want to pass the date as argument to "create content" form. any guest has access to create this type of node, but the default state is "unpublished" so that only administrator can approve (publish) the node. after that the created event would appear in calendar block and have CSS "has-event" definition (e.g. red color).
the problem is i have no idea how to pass date as argument. i can achieve this if i set the date field as simple text field by outputting the value with PHP (checking the $_GET['date']), but then it would not work as an event and wouldnt be displayed in calendar, since its just a textfield.
the date field allows only 3 default values - BLANK, NOW, and RELATIVE. it does not accept tokkens or php given arguments.
Can somebody help me out with this?
i need it in three simple steps:
1) guest visitor clicks on date
2) guest visitor has already filled date, fills out other fields and creates node (does not publish it)
3) admin checks and approves reservation node, publishes (doesnt show public), and the date appears in red color on the calendar block.