Radix starter kit templates are discoverable by Drupal

Created on 11 September 2024, 3 months ago
Updated 19 September 2024, 3 months ago

Problem/Motivation

When we want to use the same template and layout for the front page and other site's pages we just have a page.html.twig template.
In the radix starter kit (and the generated subthemes) there is a page-front.html.twig.
If we remove it to use the same template for all page Drupal grab the radix starterkit one
<!-- BEGIN OUTPUT from 'themes/contrib/radix/src/kits/radix_starterkit/templates/page/page--front.html.twig' -->

Steps to reproduce

Just delete the page-front.html.twig of your current radix generated theme and Drupal will not grab the page.html.twig template of the theme (default behavior) but the page-front.html.twig of the starterkit inside radix theme.

Proposed resolution

I've tried with a hidden: true in the starterkit.info but doesn't block the discovery of the template by Drupal.
This is maybe a core issue with starterkits.
Otherwise a local solution could be to remove derivated templates into the starterkit with just root templates.
But don't estimate the impacts.

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇫🇷France wwwahe

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

Comments & Activities

Production build 0.71.5 2024