Problem/Motivation

Components field is not added to node form display with GovCMS sites.

Steps to reproduce

This issue has been detected by customers using LaunchPad to spin up a GovCMS Drupal 10 CivicTheme site, as well as manually spinning GovCMS SaaS site

For LaunchPad site:

  1. Go to LaunchPad
  2. Follow the steps to spin up a GovCMS site

For Non LaunchPad:

  1. downloaded civic theme as an archive
  2. extracted it to themes
  3. ran the sub-theme script and instructions as per the project/readme

Observed behaviour

There are no components available to add to the node. Only the Title field and moderation/publishing state widget is available.

CommentFileSizeAuthor
image001 (6).png22.5 KBfionamorrison23

Comments

fionamorrison23 created an issue. See original summary.

fionamorrison23’s picture

Assigned: Unassigned » alex.skrypnyk
alex.skrypnyk’s picture

@joshua1234511
Could you please follow the steps for "Non LaunchPad" an check if the components are present. Thank you

joshua1234511’s picture

@alexskrypnyk

Tested the issue in two scenarios:

Test 1
Without running the necessary Drush command:
Components field was missing due to an incomplete installation process.

Test 2
With running the necessary Drush command:
Components field was added correctly, and everything worked as expected.

Solution:
Ensure that the installation steps are followed correctly, including running the essential Drush command to enable the required modules.
Related to
Please do not submit issues if your installation finished with WSOD - this means that you are using CivicTheme that was not fully installed. Install a patch mentioned above and restart your installation from scratch.

Steps Taken to Debug:
Fresh Installation:
Downloaded CivicTheme as an archive.
Extracted it to the themes directory.
Ran the sub-theme script and followed the instructions in the project/readme.

Scenario 1: Missing Components Field
Did not run the necessary Drush command:
drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();"
Result: The field components were missing due to an incomplete installation process.

Scenario 2: Successful Installation
Followed the latest installation steps from CivicTheme Drupal project page.
Ran the necessary Drush command & followed the Patch installation.
drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();"
Result: All components were added correctly, and everything worked as expected.

Conclusion:
The issue of missing components field in the node form display was due to not running the required Drush command during the installation process. https://docs.civictheme.io/development/drupal-theme#usage

fionamorrison23’s picture

@richardgaunt investigation has taken place in LaunchPad and Joshua has confirmed this issue in with the civictheme_govcms module. Can you please check this one out and add solution direction? Happy to talk further about the issues faced. I believe Toby has also encountered this issue whilst not using LaunchPad, but in creating a fresh CivicTheme for GovCMS site.

fionamorrison23’s picture

fionamorrison23’s picture

Status: Active » Closed (outdated)
Issue tags: -civictheme-release-1.10