Skip to content

Conversation

@markconroy
Copy link
Member

Closes #791

What does this change?

  • Adds a general container for the localgov_base settings.
  • Adds fieldsets inside this container to group the different settings types

How to test

Change some settings, make sure they take effect and other settings do not break.

How can we measure success?

We have a tidier settings for for localgov_base and subthemes of it.

Have we considered potential risks?

Settings for current sites break (this should not happen).

Images

Screenshot 2025-06-24 at 14 03 53

// Add settings in a details element for better organization
$form['localgov_base_settings'] = [
'#type' => 'details',
'#title' => t('LocalGov Base Settings'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This title get's inherited by the child themes. Should it change to the current theme name?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, good suggestion.

// Create a fieldset for content status related settings
$form['localgov_base_settings']['content_status_fieldset'] = [
'#type' => 'fieldset',
'#title' => t('Content Status Display'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this heading , but I can't think of a better one! :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a string. Let's leave it for now and we can easily change it later if we think of a better one.

@markconroy markconroy requested a review from msayoung July 14, 2025 11:34
@markconroy
Copy link
Member Author

@msayoung @tonypaulbarker This is ready for another review.

Copy link
Contributor

@ctorgalson ctorgalson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@finnlewis finnlewis merged commit 7f0dc19 into 2.x Jul 15, 2025
8 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tidy up theme settings form

5 participants