LocalGov Drupal Docs
Overview
  • Developers
  • Content designers
  • Designers
  • Contributing
  • Credits System
  • Accessibility
  • Governance
Microsites
Main site
GitHub
Overview
  • Developers
  • Content designers
  • Designers
  • Contributing
  • Credits System
  • Accessibility
  • Governance
Microsites
Main site
GitHub
  • For Developers
  • Getting started
    • Drupal requirements
    • Working with Lando
    • Working with DDEV
    • Debugging with Xdebug
    • Working with Gitpod
  • General configuration
    • Content types
    • Custom modules
    • Image styles
    • Media types
    • Paragraph types
    • Taxonomies
    • User roles
  • Features
    • Services: Technical
      • Introduction
      • Requirements
      • Recommended modules
      • Roles / permissions
      • Installation
      • Basic Configuration
      • Advanced configuration
      • Theming
      • Troubleshooting
      • Useful links
      • Contributing
      • Maintainers, contributors, and supporters
      • Contributors
      • Supporters
    • Alert banners: Technical
    • News: Technical
    • Directories: Technical
    • Location Geo: Technical
    • Subsites: Technical
    • Workflows: Technical
  • Theme
    • LocalGov Base
    • Regions
    • LocalGov Theme (Deprecated)
    • Skeleton theme (Deprecated)
    • Admin theme (Deprecated)
  • Testing
  • Development workflows
    • Installing and deploying a LocalGov Drupal site
  • Hosting
    • Hosting a LocalGov Drupal site
    • Hosting LocalGov Drupal on Azure
  • Release statuses
    • Release statuses
  • Security
    • Best practice guidance
    • Single Sign-On
  • Quality standards
    • Quality standards: Accessibility
    • Quality standard: Documentation
    • Quality standard: Testing
  • How-tos
    • How to use Gitpod to test modules in the browser

Services: Technical

  • Introduction
  • Requirements
    • Service landing page
    • Service sub-landing page
    • Service page
    • Service Status
    • Service Navigation
  • Recommended modules
  • Roles / permissions
  • Installation
  • Basic Configuration
    • General
  • Advanced configuration
  • Theming
    • Twig templates
    • Theme suggestions
    • Localgov Base Theme (localgov_base)
  • Troubleshooting
  • Useful links
  • Contributing
  • Maintainers, contributors, and supporters
  • Contributors
  • Supporters

Introduction

Provides the pages and navigation for presenting the Services provided by Local Government. A part of the LocalGovDrupal distribution.

Content types:

  • Landing page - the top level section for each service.
  • Sub-landing page - detail and links to specific pages within a service.
  • Page - the basic page that can be placed in a service, and on a service sub-landing page.
  • Status - an optional additional type for providing updates about a the status of a service. Other content types in the LocalGovDrupal distribution can also optionally be linked into service sections and referenced from sub-landing pages.

There are five submodules

  • localgov_services_landing
  • localgov_services_navigation
  • localgov_services_page
  • localgov_services_sublanding
  • localgov_services_status (optional)

Requirements

core_version_requirement: ^8.9 || ^9

dependencies:
  - drupal:field
  - drupal:link
  - drupal:node
  - pathauto:pathauto
  - localgov_core:localgov_core

Service landing page

dependencies:
  - drupal:field
  - drupal:link
  - drupal:menu_ui
  - drupal:node
  - drupal:text
  - drupal:user
  - drupal:views
  - localgov_services:localgov_services
  - localgov_services:localgov_services_sublanding
  - localgov_services:localgov_services_page

Service sub-landing page

dependencies:
  - drupal:content_moderation
  - drupal:field
  - drupal:menu_ui
  - drupal:node
  - drupal:path
  - drupal:text
  - drupal:user
  - field_group:field_group
  - localgov_paragraphs:localgov_paragraphs
  - localgov_services:localgov_services
  - localgov_services:localgov_services_landing
  - localgov_services:localgov_services_navigation
  - localgov_services:localgov_services_page
  - localgov_topics:localgov_topics
  - pathauto:pathauto

Service page

dependencies:
  - drupal:content_moderation
  - drupal:field
  - drupal:link
  - drupal:menu_ui
  - drupal:node
  - drupal:path
  - drupal:taxonomy
  - drupal:text
  - drupal:user
  - entity_browser:entity_browser
  - field_group:field_group
  - link_attributes:link_attributes
  - localgov_services:localgov_services
  - localgov_services:localgov_services_sublanding
  - localgov_services:localgov_services_landing
  - localgov_services:localgov_services_navigation
  - localgov_page_components:localgov_page_components
  - pathauto:pathauto

Service Status

dependencies:
  - drupal:options
  - drupal:path
  - drupal:text
  - drupal:user
  - condition_field:condition_field
  - localgov_services:localgov_services_landing
  - localgov_services:localgov_services_navigation

Service Navigation

dependencies:
  - drupal:link
  - drupal:node
  - drupal:pathauto
  - localgov_services:localgov_services

Recommended modules

n/a

Roles / permissions

This feature does not define any permissions itself, but if the localgov_workflow and localgov_roles modules are enabled then they will apply to the content defined in this feature.

Installation

The 4 main sub-modules are a core part of the LGD install profile, and will be installed as part of that. The Service Status module can be optionally enabled.

To install it as a feature outside of LGD [TODO]

Basic Configuration

General

Service landing page

Name:
Service landing page

Machine name:
localgov_services_landing

Description:
Top level section page for each service.

Menu settings

Available menus:

  • Main navigation

Default menu: <main>

Simple XML Sitemap

Included: true

Priority: 0.5

Change frequency: Not specified

Include images: No

Fields
Field nameMachine nameField type
Addresslocalgov_addressText (formatted, long)
BodybodyText (formatted, long, with summary)
Child pageslocalgov_destinationsEntity reference
Contact us online URLlocalgov_contact_us_onlineText (plain)
Email addresslocalgov_email_addressText (plain)
Facebooklocalgov_facebookText (plain)
First line of addresslocalgov_address_first_lineText (plain)
Hearing or speech difficulties phone numberlocalgov_hearing_difficulties_phText (plain)
Link to maplocalgov_link_to_mapLink
Opening hourslocalgov_opening_hoursText (formatted, long)
Other team contacts URLlocalgov_other_team_contactsText (plain)
Phonelocalgov_phoneText (plain)
Popular topicslocalgov_popular_topicsEntity reference
Task buttonslocalgov_common_tasksLink
Twitterlocalgov_twitterText (plain)

Service page

Name:
Service page

Machine name:
localgov_services_page

Description:
Basic page that can be placed in a service and on a service sub landing page.

Menu settings

Available menus:

  • Main navigation

Default menu: <main>

Simple XML Sitemap

Included: true

Priority: 0.5

Change frequency: Not specified

Include images: No

Fields
Field nameMachine nameField type
BodybodyText (formatted, long, with summary)
Download linkslocalgov_download_linksLink
Hide the related topics panellocalgov_hide_related_topicsBoolean
Page componentslocalgov_page_componentsEntity reference
Parentlocalgov_services_parentEntity reference
Related linkslocalgov_related_linksLink
Replace automatically generated linkslocalgov_override_related_linksBoolean
Task buttonslocalgov_common_tasksLink
Topic termslocalgov_topic_classifiedEntity reference

Service sub-landing page

Name:
Service sub-landing page

Machine name:
localgov_services_sublanding

Description:
Pages for detail and links to specific pages within a service.

Menu settings

Available menus:

  • Main navigation

Default menu: <main>

Simple XML Sitemap

Included: true

Priority: 0.5

Change frequency: Not specified

Include images: No

Fields
Field nameMachine nameField type
BodybodyText (formatted, long, with summary)
Child pageslocalgov_topicsEntity reference revisions
Services: Parentlocalgov_services_parentEntity reference

Advanced configuration

todo

Theming

Twig templates

The following templates are (currently) defined within the modules.

  • services-cta-block.html.twig
  • node--localgov-services-landing--full.html.twig
  • taxonomy-vertical-list.html.twig
  • localgov-services-navigation-child.html.twig
  • localgov-services-navigation-children.html.twig
  • services-related-links-block.html.twig
  • services-related-topics-block.html.twig
  • node--localgov-services-status--message.html.twig
  • service-status-block.html.twig
  • service-status-message.html.twig
  • service-status-page.html.twig
  • views-view-localgov-services-status.html.twig
  • dummy-teaser.html.twig
  • field--paragraph--topic-list-links--topic-list-builder.html.twig
  • paragraph--topic-list-builder.html.twig

Theme suggestions

todo

Localgov Base Theme (localgov_base)

The following templates are defined within localgov_base theme, and if you are not using this as your base theme you might like to steal these templates:

  • https://github.com/localgovdrupal/localgov_base/blob/1.x/templates/paragraphs/paragraph--topic-list-builder.html.twig
  • https://github.com/localgovdrupal/localgov_base/blob/1.x/templates/field/field--paragraph--topic-list-links--topic-list-builder.html.twig
  • https://github.com/localgovdrupal/localgov_base/blob/1.x/templates/content/node--localgov-services-landing--full.html.twig
  • https://github.com/localgovdrupal/localgov_base/blob/1.x/templates/block/services-cta-block.html.twig

CSS

  • https://github.com/localgovdrupal/localgov_base/blob/1.x/css/components/topic-list-builder.css
  • https://github.com/localgovdrupal/localgov_base/blob/1.x/css/components/service-landing-page.css
  • https://github.com/localgovdrupal/localgov_base/blob/1.x/css/components/service-cta-block.css

Troubleshooting

todo

Useful links

  • Git repo
  • Readme
  • Issue Queue

Contributing

Contribution guidelines go here

Maintainers, contributors, and supporters

Maintainers Name Name

Contributors

Name Name

Supporters

Org x provided y Org x sponsored y

Help us improve this page!
Last Updated: 5/24/2023, 3:01:06 PM
Next
Alert banners: Technical