Installation instructions for Eventbookings
Last updated on
30 April 2025
Dependencies
- BookingsAPI : 6.x-3.x-dev or greater
- Calendar : 6.x-2.4 or greater
- Date : 6.x-2.7 or greater
Installation/Configuration
- Enable the eventbookings module
- Add a date, datestamp, or datetime field to the Content Types that will you use for defining an Event or Availability
- Goto "Content Management > Content Types > Edit <content_type>"
- In the Event bookings fieldset, set the following fields:
- Fieldset title:
- Defines the label used for the Eventbookings fieldset
- This content type defines availability for a resource
- If selected, then this Content Type can be used to define availabilities/unavailabilities for Resources. This is exclusive of bookings - so if selected, you can NOT use this Content Type to create bookings - only availabilities
- Collapsable fieldset
- If selected, the Eventbookings fieldset will be collapsable
- Allow multiple bookings of resources
- If selected, you can book multiple resources per this Content Type; otherwise, you will only be able select a single resource
- Pending bookings appear as a conflict
- If selected, then bookings in a pending state will cause the resource to be unavailable for booking; otherwise, the resource will be available if in a pending state
- Default Booking status
- Default value for a booking
- Select the date field for bookings
- Select which date field is used for bookings - if <none> is selected, then the Eventbookings module won't be enabled for this Content Type
- The weight of the bookings fieldset in the form
- Used to position the Eventbookings field in the Content Type
- Enable all day support
- If enabled, then an Event marked as "All day" (An "All day" event is one who's start and stop time are 12:00 am on the same day) - then you specify the hours for a booking. This is useful when you want an event to be displayed on the Calendar as "All day" but only book a meeting room for the working hours of 8-5.
- Goto "User Management > Permissions"
- Enable administer bookable Node types for the proper roles
- Enable book a resource from a bookable Node for the proper roles
- Enable change booking status for the proper roles
Create Bookings API Resources
- Goto "Content Management >Create Content > Bookings API Resource"
- Fill out appropriate fields
- Set the Default Availability to Available
- Click save
- Repeat for the rest of the bookable resources
Create a Booking
- Goto "Content management > Create content > <your_event_type>"
- Add a title
- Change the from and to field in the enabled date fieldset
- As you change the values, the resource bookings table should automatically update reflecting the range and enabling/disabling resource selection based off of availability
- Set the repeat rule if appropriate. This should update the resource booking table
- Select which resources you want to book. If there are conflicts, they will be listed as links - you can click on the link to make changes. Just hit the Refresh Bookings button after making the changes.
- If the bookings were created through Publicbookings, they will not appear as a link. You will need to goto Publicbookings to make any changes.
- Click on the schedule link to see a calendar of the resource's bookings
- Select Save to create the Event
Create an Availability/Unavailable Set
- Goto "Content management > Create content > <your_availability_type>"
- Add a title
- Change the from and to field in the enabled date fieldset
- As you change the values, the resource bookings table should automatically update reflecting the range
- Set the repeat rule if appropriate. This should update the resource booking table
- Select which resources you want to set.
- Set Available or Unavailable to define whether this date sets availability or unavailability records
- Select Save to create the Event
Modify the Resource Schedule View
- If the date field for the nodes is field_date you don't have to the change the view - it should be ok as-is.
- Else, goto "Site building > Views"
- Locate eventbookings_resource_schedule and click on Edit
- Under Arguments, click on Date: Date (node)
- Under Date field(s):, select the correct date field (use the from field)
- Select Update
- Under Fields, click on Broken/missing handler
- Select Remove
- Select + button in the Fields section
- Select Content in the Groups: dropdown
- Select the same date field as specified in the Arguments
- Click Add
- In the next screen, unselect Group multiple values if it's selected
- Under Label:, select None
- Click Update
- Under Sort Criteria, click on the + button
- Select Content in the Groups: dropdown
- Select the same date field as specified in the Arguments
- Click Add
- In the next screen, select Descending
- Click Update
- Select Broken/missing handler asc
- Select Remove
- Select on the Save button in the lower left to save the changes to the view
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion