The Mayflower Patternlab component library is an experimental project created by Mass Digital Services Team. Visit the official Mayflower documentation to get started

pages

LOCATION PARK CONTENT

Description

This page extends the location template to show how it could be used as a Park Location page.

Status

  • Stable as of 5.0.0

Pattern Contains

  • Header
  • Footer
  • Location (template)
  • Location Icons
  • Contact List
  • Key Actions
  • Rich Text
  • Map Leaflet
  • Image Promo
  • Event Listing
  • Suggested Pages

Variables

See Patterns above

The location park content pattern contains the following patterns: templates-location, organisms-ajax-pattern, organisms-header-hamburger, organisms-rich-text, molecules-map-leaflet, organisms-image-promos, organisms-event-listing, organisms-related-locations, organisms-footer

  {% extends '@templates/01-content-types/location.twig' %}

{% block header %}
  {% set ajaxPattern = ajaxEmergencyAlerts %}
  {% include "@organisms/by-template/ajax-pattern.twig" %}
  {% include "@organisms/by-template/header-hamburger.twig" %}
{% endblock %}

{% block pageContent %}
  {% set richText = mainContent.overview %}
  {% include "@organisms/by-author/rich-text.twig" %}
  {% set richText = mainContent.hours %}
  {% include "@organisms/by-author/rich-text.twig" %}
  {% set richText = mainContent.parking %}
  {% include "@organisms/by-author/rich-text.twig" %}
  {% set leafletMap = mainContent.leafletMap %}
  {% include "@molecules/map-leaflet.twig" %}
  {% set imagePromos = mainContent.imagePromos %}
  {% include "@organisms/by-author/image-promos.twig" %}
  {% set richText = mainContent.allActivities %}
  {% include "@organisms/by-author/rich-text.twig" %}
  {% set richText = mainContent.facilities %}
  {% include "@organisms/by-author/rich-text.twig" %}
  {% set richText = mainContent.acessibility %}
  {% include "@organisms/by-author/rich-text.twig" %}
  {% set richText = mainContent.restrictions %}
  {% include "@organisms/by-author/rich-text.twig" %}
{% endblock %}

{% block sidebar %}
  {% if sidebar.eventListing %}
    {% set eventListing = sidebar.eventListing %}
    {% include "@organisms/by-author/event-listing.twig" %}
  {% endif %}
{% endblock %}

{% block postContent %}
  {% include "@organisms/by-author/related-locations.twig" %}
{% endblock %}

{% block footer %}
  {% include "@organisms/by-template/footer.twig" %}
{% endblock %}