githubEdit

Drupal theme

Install CivicTheme

composer require drupal/civictheme

Alternatively, you can download the latest versionarrow-up-right from Drupal.org and place into the desired location.

circle-info

Note that Drupal core has a known issuearrow-up-right and a patcharrow-up-right would need to be installed on your site.

Install Contrib modules

CivicTheme has required dependencies on contrib modulesarrow-up-right and optional dependencies on search_api.

These dependencies need to be downloaded and installed before you are able to install CivicTheme.

GovCMS SaaS specific installation instructions

circle-info

See Using in GovCMS SaaS for specific GovCMS SaaS instructions.

Usage

CivicTheme can be used as a no-code Drupal theme with some of the configurations done on theme settings page.

Enabling contrib modules

Due to Drupal allowing themes to declare module dependenciesarrow-up-right, but does not yet allow those modules to be enabled automaticallyarrow-up-right).

The contrib module dependencies need to enabled manually or with an automated script:

Enable required modules only

Enable required and optional modules

Clear caches

Enable CivicTheme

Enable the theme in UI or with Drush:

Provision content

CivicTheme comes with pre-set Block Content blocks configuration. Since Drupal does not support running install hooks in themes, a custom content provisioning script has to be used.

  1. Login to the local instance of your site.

  2. Navigate to /admin/appearance/settings/<SUBTHEME_MACHINE_NAME>\

  1. Press "Provision content" button.

  2. Navigate to the homepage and observe that all blocks and menus are present.

  3. Export config for created entities:

Depending on your deployment workflow, you may need to repeat this step after deployment to your hosting provider environment.

circle-info

After deployment and provisioning your remote feature environment should look like a default CivicTheme sitearrow-up-right without homepage content.

Setting up a sub-theme

See Sub-themearrow-up-right section to create a sub-theme and use CivicTheme as a base theme.

Last updated

Was this helpful?