Content Types
Welcome to the YMCA Website Services Content Types documentation
In terms of YMCA Website Services - content types are bundles
of node
entity of the Drupal Framework.
You can find a much more low level documentation at
drupal.org.
YMCA Website Services has a bunch of content types shipped for the convenience of usage the resulting site.
We are not limiting amount of content types, could be added by developers, so the list is not final.
The only rule we are trying to follow is to cover shipped list of content types by YMCA Website Services upgrade path.
1 - Activity
Activity content type is used for adding Activities on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the activity item. |
Program Subcategory | field_activity_category | Yes | A reference field for selecting the program subcategory. |
Content Area | Field group | | |
Description | field_activity_description | No | Textarea for the description/body with WYSIWYG, without summary. |
URL pattern
Content type is using following pattern:
/programs/[node:field_activity_category:entity:field_category_program:entity:title]/[node:field_activity_category:entity:title]/[node:title]
2 - Alert
Alert content type is used for adding alerts on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the activity item. |
Background color | field_alert_color | Yes | Reference field for choosing the term from “Color” vocabulary. |
Text color | field_alert_text_color | Yes | Reference field for choosing the term from “Color” vocabulary. |
Icon color | field_alert_icon_color | No | Reference field for choosing the term from “Color” vocabulary. Description for field: “Leave empty to hide icon.” |
Placement | field_alert_place | Yes | Select list field (singular) for choosing place: |
Description | field_alert_description | Yes | Textarea for the description/body with WYSIWYG, without summary. |
Link | field_alert_link | No | Internal or external link. |
Reference | field_alert_belongs | No | Entity reference with autocomplete to any node. Description for field: “Reference to node (branch, camp, landing page and etc.), where local alert will be displayed.” |
URL pattern
Content type is using following pattern:
/alert/[node:title]
.
3 - Article
Article content type is used for adding blog posts, news items, and press releases on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the article item. |
Sub-title | default?? | No | Sub-title of the article item |
Locations | field_article_location | Yes | Reference field to branch and camp nodes. Multiple Values. |
Category | field_article_category | No | Reference field for choosing the term from “Blog Category” vocabulary. Multiple Values. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Type | field_article_type | Yes | Select list field with multiple options for choosing article type:- News Item (default)
- Blog Post
- Press Release
|
Image | field_article_image | No | Image field for the Blog item. Entity reference to Media bundle. |
Body | body | No | Textarea for the description/body with WYSIWYG, without summary. |
Content | field_content | No | Filter list of available layout builder components |
Related Content | field_article_related | No | Reference field for choosing related Article nodes. Multiple Values. |
URL pattern
Content type is using following pattern:
/blog/[node:title]
/news/[node:title]
/press-release/[node:title]
4 - Blog
Blog Post content type is used for adding blog posts on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the blog item. |
Locations | field_blog_location | Yes | Reference field to branch and camp nodes. Multiple Values. |
Category | field_blog_category | No | Reference field for choosing the term from “Blog Category” vocabulary. Multiple Values. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Styles | Field group | | |
Style | field_blog_style | Yes | Select list field with multiple options for choosing style:- Story Card
- Photo Card
- News Card (default)
- Color Card
|
Background color | field_blog_color | No | teaser background color (used when Color Card style is selected.) |
Text color | field_blog_text_color | No | teaser text color (used when Color Card style is selected.) |
Content Area | Field group | | |
Image | field_blog_image | No | Image field for the Blog item. Entity reference to Media bundle. |
Description | field_blog_description | No | Textarea for the description/body with WYSIWYG, without summary. |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Sidebar Area | Field group | | |
Related content | field_blog_related | No | Reference field for choosing related Blog nodes. Multiple Values. |
Content | field_sidebar_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
/blog/[node:title]
5 - Branch
Branch content type is used for adding Branches on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the branch item. |
Neighborhood | field_location_area | No | A taxonomy reference field using the “Area” vocabulary. |
Coming Soon | field_location_state | No | A checkbox field to determine branches in development. |
Temporary URL | field_location_temp_url | No | A link field to provide a temporary page URL (a blog post, or something else) if the branch is coming soon. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Contact | Field group | | |
Address | field_location_address | Yes | An address field that will provide the ability to add details about the locations. Details to be completed: |
Branch Coordinates | field_location_coordinates | No | Input for providing the latitude and longitude information. |
Phone | field_location_phone | Yes | Input for providing the phone information. |
Fax | field_location_fax | No | Input for providing the fax information. |
Email | field_location_email | No | Input for providing the email information. |
Directions | field_location_directions | No | A link field for adding the directions link. |
Branch Hours | Field group | | |
Branch Hours | field_branch_hours | Paragraph | Paragraph to indicate the branch hours. |
Day of the week | field_branch_hours_day | No | Select list with following values:- sunday|Sunday
- monday|Monday
- tuesday|Tuesday
- wednesday|Wednesday
- thursday|Thursday
- friday|Friday
- saturday|Saturday
|
Start/End Time | field_branch_hours_time | No | Textfield with description “e.g. 9am - 5pm, closed.” |
Header Area | Field group | | |
Content | field_header_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Content Area | Field group | | |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Bottom Area | Field group | | |
Content | field_bottom_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
/locations/[node:title]
6 - Camp
Camp content type is used for adding Camps on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the camp item. |
Menu links | field_camp_menu_links | Yes | Link field with multiple values, that should have the Title and Link field. Based on it, we will complete the Camp Menu. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Contact | Field group | | |
Address | field_location_address | Yes | An address field that will provide the ability to add details about the locations. Details to be completed: |
Camp Coordinates | field_location_coordinates | No | Input for providing the latitude and longitude information. |
Phone | field_location_phone | Yes | Input for providing the phone information. |
Fax | field_location_fax | No | Input for providing the fax information. |
Email | field_location_email | No | Input for providing the email information. |
Directions | field_location_directions | No | A link field for adding the directions link. |
Header Area | Field group | | |
Content | field_header_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Content Area | Field group | | |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Bottom Area | Field group | | |
Content | field_bottom_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
/camps/[node:title]
7 - Class
Class content type is used for adding Classes on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the class item. |
Activity | field_class_activity | No | A reference field for selecting the class. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Header Area | Field group | | |
Content | field_header_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Content Area | Field group | | |
Description | field_class_description | No | Textarea for the description/body with WYSIWYG, without summary. |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Sidebar Area | Field group | | |
Content | field_sidebar_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Bottom Area | Field group | | |
Content | field_bottom_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
/programs/[node:field_class_activity:entity:field_activity_category:entity:field_category_program:entity:title]/[node:field_class_activity:entity:field_activity_category:entity:title]/[node:title]/class-times
8 - Event
Event content type is used for adding events on the site.
Fields
Label | Machine Name | Required | Description | Field Settings | Notes |
---|
Title | drupal’s default | Yes | Title of the event item. | | |
Sub-title | default?? | No | Sub-title of the event item. | plain text | |
Locations | field_event_location | Yes | Reference field to branch and camp nodes. Multiple Values. | | Address for event; can be either a branch or non-branch location. |
Category | field_event_category | No | Reference field for choosing the term from “Event Category” vocabulary. Multiple Values. | | |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. | | |
Image | field_event_image | No | Image field for the Event item. Entity reference to Media bundle. | media | |
Date | field_event_date | Yes | This will use Drupal date/time fields. | | |
Add to Calendar | field_add_to_calendar_link | No | | link | |
Body | body | No | Textarea for the description/body with WYSIWYG, without summary. | | |
Content | field_content | No | Filter list of available layout builder components | | |
Related Content | field_event_related | No | Reference field for choosing related Event nodes. Multiple Values. | | |
URL pattern
Content type is using following pattern:
/event/[node:title]
9 - Facility
Facility content type is used for adding facilities on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the facility item. |
Neighborhood | field_location_area | No | A taxonomy reference field using the Area Vocabulary(area). |
Type | field_facility_type | No | A taxonomy reference field using the “Facility Type” vocabulary. |
Facility Branch | field_facility_loc | No | A entity reference field to reference the related Branch node. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Contact | Field group | | |
Address | field_location_address | No | An address field that will provide the ability to add details about the locations. Details to be completed: |
Facility Coordinates | field_location_coordinates | No | Input for providing the latitude and longitude information. |
Phone | field_location_phone | Yes | Input for providing the phone information. |
Fax | field_location_fax | No | Input for providing the fax information. |
Email | field_location_email | No | Input for providing the email information. |
Directions | field_location_directions | No | A link field for adding the directions link. |
Facility Hours | field_branch_hours | No | The facility hours |
Facility Holiday Hours | field_branch_holiday_hours | No | Any special holiday hours for the facility. |
Content Area | Field group | | |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Sidebar Area | Field group | | |
Content | field_sidebar_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
/facility/[node:title]
10 - Landing Page
Landing Page content type is used for adding landing pages on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the landing page item. |
Layout | field_lp_layout | Yes | Select list with the options:- one_column_clean|One Column - Full width
- one_column|One Column
- two_column|Two Columns
- two_column_fixed|Two Columns with fixed sidebar (sticky at the top)
|
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Header Area | Field group | | |
Content | field_header_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Content Area | Field group | | |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Sidebar Area | Field group | | |
Content | field_sidebar_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Bottom Area | Field group | | |
Content | field_bottom_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
[node:title]
11 - Landing Page (Layout Builder)
Landing Page content type is used to add Landing Pages to your website using Layout Builder widgets.
This page is managed with Layout Builder. You may want to uncheck “Publish Content” before creating a page, use the “Layout” tab to build the content, then Publish when the page is complete. See our
User Guide for help.
Fields
Label | Machine Name | Required | Description | Field Settings | Notes |
---|
Title | title | yes | Title of Landing Page | | |
Metadata | Field group | | | | |
Meta description | field_meta_description | no | Short text used for metatags and cards | Text (plain, long) | |
Meta image | field_meta_image | no | Media image reference for use in metatags and cards | Entity reference (Media image) | |
Meta tags | field_meta_tags | no | Provided by Metatag module | | |
URL pattern
Content type is using following pattern: [node:title]
12 - Membership
Membership content type is used for adding membership on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the membership item. |
Description | field_mbrshp_description | Yes | Textarea for the description/body with WYSIWYG, without summary. |
Image | field_mbrshp_image | Yes | Media field to upload the image. |
Membership info | field_mbrshp_info | Paragraph | Paragraph to indicate the location where the membership is available and the URL. |
Location | field_mbrshp_location | No | Select list with locations (branches). Single value. |
Link | field_mbrshp_link | No | Link field to provide the membership redirect URL. |
Join Fee | field_mbrshp_join_fee | No | Dollar value for how much someone has to pay to join. |
Monthly Rate | field_mbrshp_monthly_rate | No | Dollar value for the monthly fee of the membership. |
URL pattern
Content type is using following pattern:
/membership/[node:title]
13 - News
News Post content type is used for adding news posts on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the news item. |
Locations | field_news_location | Yes | Reference field to branch and camp nodes. Multiple Values. |
Category | field_news_category | No | Reference field for choosing the term from “News Category” vocabulary. Multiple Values. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Content Area | Field group | | |
Image | field_news_image | No | Image field for the News item. Entity reference to Media bundle. |
Description | field_news_description | No | Textarea for the description/body with WYSIWYG, without summary. |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Sidebar Area | Field group | | |
Related content | field_news_related | No | Reference field for choosing related News nodes. Multiple Values. |
Content | field_sidebar_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
/news/[node:title]
14 - Program
Program content type is used for adding Programs on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the program item. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Header Area | Field group | | |
Icon | field_program_icon | No | A image field, supporting .svg for uploading the program icon. |
Image | field_program_image | No | A image field, for uploading the program image. |
Color | field_program_color | No | Reference field for choosing the term from “Color” vocabulary. |
Content | field_header_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. If this field is not empty, then the image and icon are not displayed on the page. |
Content Area | Field group | | |
Description | field_program_description | No | Textarea for the description/body with WYSIWYG, without summary. |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Sidebar Area | Field group | | |
Content | field_sidebar_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
/programs/[node:title]
15 - Program Subcategory
Program Subcategory content type is used for adding program subcategories on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the program subcategory item. |
Program | field_category_program | Yes | A reference field for selecting the program. |
Meta Tags | field_meta_tags | No | A meta tags field allows us to provide structured metadata and Graph meta tags for Facebook, Pinterest, LinkedIn and other social networking sites. |
Header Area | Field group | | |
Image | field_category_image | No | A image field, for uploading the category image. |
Color | field_category_color | No | Reference field for choosing the term from “Color” vocabulary. |
Content | field_header_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Content Area | Field group | | |
Description | field_category_description | No | Textarea for the description/body with WYSIWYG, without summary. |
Content | field_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Sidebar Area | Field group | | |
Content | field_sidebar_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
Bottom Area | Field group | | |
Content | field_bottom_content | No | A paragraph embed field that will allow us to add various flexible content modules, from the predefined list of paragraph types. |
URL pattern
Content type is using following pattern:
/programs/[node:field_category_program:entity:title]/[node:title]
16 - Promotion
Promotions are timed pieces of content that allow content editors the flexibility to create a single item that can be placed in multiple locations on the site, without having to duplicate or manage content in multiple locations.
Fields
Name | Machine name | Field type | Required? |
---|
Title | title | | yes |
Subtitle | field_subtitle | Text (plain) | |
CTA / link | field_link | Link | no |
Description | field_promo_description | Text (formatted, long) | no |
Image | field_promo_media | Entity reference | yes |
Pages | field_promo_visibility_pages | Text (plain, long) | |
Promotion Category | field_promo_category | Entity reference | no |
Promotion Priority | field_promo_priority | List (text) | yes |
Promotion visibility state | field_promo_visibility_state | List (text) | yes |
URL pattern
No URL pattern. This content should not be visible on its own.
17 - Session
Session content type is used for adding Sessions on the site.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the session item. |
Class | field_session_class | Yes | A reference field for selecting the program subcategory. |
Session Info | Field group | - | - |
Description | field_session_description | No | Textarea for the description/body with WYSIWYG, without summary. |
Gender | field_session_gender | No | Select List with Gender options: Coed, Male, Female. |
Online registration | field_session_online | No | Boolean field that determines if the Register Now button/link gets displayed. |
Ticket required | field_session_ticket | No | Checkbox field to indicate that there is a ticket required. |
Min Age | field_session_min_age | No | Input field for adding the min age. |
Max Age | field_session_max_age | No | Input field for adding the max age. |
Registration link | field_session_reg_link | No | A link field with the Registration link Value. |
Membership | Field group | - | - |
In membership | field_session_in_mbrsh | No | Boolean field that helps determine if the session is included into membership package. |
Member price | field_session_mbr_price | No | Input with with the price information for members. |
Non Member Price | field_session_nmbr_price | No | Input with with the price information for members. |
Location | Field group | - | - |
Location | field_session_location | Yes | A reference field for selecting the branch or camp. |
Physical Location | field_session_plocation | No | A reference field for selecting the facility. |
Time | Field group | - | - |
Exclusions | field_session_exclusions | No | A date field that identifies dates that would normally have an instance of the session but won’t. Needs to be able to have multiple exclusions. Supports multiple values. Should be handled by a single date field with ’end date’ option enabled. Its widget should be adjust to not to show period end date, but show period end time (to keep period start/end date equal). |
Time | field_session_time | Paragraph | Session schedule. |
Date & Time | field_session_time_date | No | This will use Drupal date/time fields & should be a single date field with ’end date’ and ’end time’ option enabled. |
Days | field_session_time_days | No | Checkboxes with following values:- sunday|Sunday
- monday|Monday
- tuesday|Tuesday
- wednesday|Wednesday
- thursday|Thursday
- friday|Friday
- saturday|Saturday
Should support multiple values. |
URL pattern
No URL pattern. Eventually this content type shouldn’t be available for end users.
18 - Social Post
Social Post content type is used for adding Social Posts on the site. Social Posts are grabbed from social networks.
Fields
Name | Machine name | Required | Description |
---|
Title | drupal’s default | Yes | Title of the program item. |
ID | field_id | Yes | Post Id in social network. This is system field. Is used by post fetcher. |
Image | field_image | No | Image field for saving post image. Can save jpg and png formats. |
Link | field_link | no | Contains link to original post in social network. |
Platform | field_platform | no | The name of platform where post was imported from. |
Post | field_post | yes | Text of post. |
Posted | field_posted | no | Date when post was posted in social network |
URL pattern
Content type is using following pattern:
/social_post/[node:title]