Problem/Motivation

There's a lot of work to setup a new content type. There are about a dozen fields which are devoted to look and feel. For example, to override the banner settings there are 8 fields.

My recommendation is to bundle some of these fields into paragraphs, which makes this possible within the govcms constraints.

  • "Banner settings" paragraph
  • Move fields to paragraph
  • add field_banner_settings or whatever
  • Use "Button" for the paragraph.

Here is an example of how that looks. The benefits are:

  1. Easy to enable this on a content type, just add one field instead of 8.
  2. Easy to keep the form structure consistent because there is literally only one.
  3. Can be applied to other overrides which are, in practice, only applied/overriden occasionally per node.
  4. Easy to "see" all the related settings from a developer perspective.

Nice ux adding a thing huh

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 civictheme-3459808-2.png18.25 KBsime

Comments

sime created an issue. See original summary.

sime’s picture

StatusFileSize
new18.25 KB

Adding screenshot

sime’s picture

Issue summary: View changes
sime’s picture

Issue summary: View changes
alex.skrypnyk’s picture

Title: Bundle together those overrides into a paragraph » Make component overrides easily re-usable

This suggestion adds a new twist to the paradigm of "configuration paragraphs": we already use similar approach for the "Automated list", where the configuration of what would be displayed is passed down the processing pipeline to the view.

I like this suggestion from the point of re-usability of settings between content types: if a new content type wants to use Banner overrides - adding a "Banner override" paragraph should provide such functionality in an easy way with all the "wiring" already in-place.

The scope of the implementation needs to be widen to include possible future overrides for other components added within CivicTheme or in a consumer site.

The paragraph for a specific component can be collapsed or expanded by OOTB CivicTheme based on the component itself to make it more apparent for the content editor what the override fields are, which will make the Banner Overrides UI looking to closer to what it is now than what it is on the screenshot in the description.

This will also require an update hook to migrate existing site to use such configuration paragraphs.

@sime
Thank you for your suggestion. This is solid.

fionamorrison23’s picture

Version: 1.8.0 » 1.x-dev
richardgaunt’s picture

Status: Active » Postponed
richardgaunt’s picture

Thanks for the suggestions. We probably won't be doing anything on this at this stage in the V1 project but will leave open in postponed if we look into the architecture etc.

fionamorrison23’s picture

Status: Postponed » Closed (won't fix)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.