Cookbook: Have some different Event-types in one calendar
This Cookbook shows, how you can have some different Event-types in one Event-Calendar for Drupal 7 (http://drupal.org/node/1477602). The Event-calendar shows every user only the for his role(s) allowed Event-types. You can use this e.g. to differ in internal, administrative and public Events.
Cookbook:
Step 1: Build the Event-types
- If not enabled, (download, install to your modules-path like
sites/all/modulesand) enable the Module "References" (http://drupal.org/project/references). - If not enabled, download and install the Content Access module http://drupal.org/project/content_access
- On the first event-type, you create a Date-field.
- Configure the Date-field suitably (especially set "Time zone handling" to "No time zone conversion" [1]), before you use an Event-type by adding content. After adding content to one Event-type, you cannot change the setting of these Date-fields.
- On the next Event-type Add existing field, select the Date-field you created from the "Field to share" popup. The Label doesn't matter.
- And so on for the next event-type.
- Visit '
http://example.com/admin/structure/types/manage/<your event type>/access' and set the permissions for an event-type.
In the module Calendar you have only ONE date-field from several event-types (and no problems in the calendar).
Step 2: Add one or more events per Event-type
To test:
Click several times on "Add content" in the Navigation-menu, select the Event-type, add Title, Date/Time and Body as you like, Click on "Save".
Step 3: View the event-calendar
Visit 'http://example.com/calendar-node-field-event-date'.
Hint:
Login as an (test-)user from another user-group to view the visible events.
Good luck!
Help improve this page
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