Activity

The Activity content type is used for adding Activities to the site. Activities are typically associated with Programs and Classes.

Fields

NameMachine nameRequiredDescription
Titledrupal's defaultYesTitle of the activity item. This is the standard Drupal title field.
Program Subcategoryfield_activity_categoryYesA reference field for selecting the program subcategory to which the activity belongs. This field connects the Activity to a specific subcategory within the broader program structure.
Content AreaField groupA field group to organize the main content of the Activity.
Descriptionfield_activity_descriptionNoTextarea for the description/body of the activity. This field uses a WYSIWYG editor (like CKEditor) for rich text formatting, but does not support a summary field.

URL pattern

This content type uses the following URL pattern:

/programs/[node:field_activity_category:entity:field_category_program:entity:title]/[node:field_activity_category:entity:title]/[node:title]

Explanation:

  • /programs/: Indicates that this is part of the Programs section of the site.
  • [node:field_activity_category:entity:field_category_program:entity:title]: This part of the URL is dynamically generated from the title of the Program to which the activity subcategory is associated.
  • [node:field_activity_category:entity:title]: This is dynamically generated from the title of the Activity Category.
  • [node:title]: This part is dynamically generated from the title of the Activity node itself.
Last modified March 11, 2025: feat: improve docs (3e852052)