Brussels Calendar

Categories

Component ID

2923955

Component name

Brussels Calendar

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

56

Component created

Component changed

Component body

Based on Event Calendar Widget of Paul Navasard (https://codepen.io/peanav/full/ulkof).

Ones installed, add a Calendar Block and edit settings corresponding your requirements.

Functionalities:

  • Gets data from a view.
  • Single field or multiple fields (range support)
  • Index supoort for fields (use of a single field with multiple values)
  • Can use javascript function as trigger on day click and event click.
  • Supports timestamp and datetime field types.
  • Optional categories with activity colors (using a custom text color field of the taxonomy linked to the content).
  • Optional legend
  • Locatlization using momentjs (including first day of week).

Notes:

  • Use the standard translation interface of Drupal to change"No events" to another language.
  • If events are not shown, check if the required fields exists.
  • Use the view capabilities to limit the results if too slow (100+ events).

Setup:

  1. Setup a view with the content you want to show.
  2. If you want colors for each type of event (example "Courses", "Presentations"):
    1. Create a taxonomy and within that taxonomy add a custom text field for the color value to be used for CSS.
    2. Add a field to the content type for the taxonomy (only the first entry is Enter the taxonomy machine name,
  3. Add a Brussels Calendar block, enter the machine names as added in the previous steps.

What could be added:

  • Using view custom fields for rendering custom representation of the content. Now title is used.
  • Multiple styles: Light/dark style.