Proposal: move templates from starterkit to base theme

Created on 15 January 2025, about 2 months ago

Problem/Motivation

Currently when a radix template changes, existing sites will not receive the change without manually copying the change from the starterkit to their sub-theme. When the change is accompanied by a corresponding change to the component, this can cause incompatibility where none would otherwise occur.

Also, core discovers the templates in the starterkit and uses them in the absence of a template in the sub-theme. This was discovered when the home page template was deleted. Moving the templates to the base theme would at least put them where a sub-theme developer would expect them to be discovered by the theme system.

This would affect only new sub-themes. Existing subthemes could compare their templates with core and delete them from core.

Discuss?

πŸ“Œ Task
Status

Active

Version

6.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States danchadwick Boston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @danchadwick
  • Hey Dan,

    A couple of notes on my end regarding the issue:

    > Currently when a radix template changes, existing sites will not receive the change without manually copying the change from the starterkit to their sub-theme.

    That's by design, and I believe that's okay to be like this, any older website that is already built, shouldn't be needing to change their markup (eg. templates and so on), so what they currently have should suffice. If they are keen on being updated, they should manually review and update if needed.

    > When the change is accompanied by a corresponding change to the component, this can cause incompatibility where none would otherwise occur.

    This is the tricky part, but we've been doing this since 8.x.4.x more or less, we just need to be more mindful of backward compatibility when changing the components.

    > Also, core discovers the templates in the starterkit and uses them in the absence of a template in the sub-theme.

    That's the core problem to be addressed, when we set the starterkit: true it should just ignore the templates, but for now let me take a look, I might have some solutions for this, eg. fully remove the starterkit once it gets copied

  • πŸ‡ΊπŸ‡ΈUnited States danchadwick Boston
Production build 0.71.5 2024