Regions and templates

Created on 8 July 2025, 2 days ago

Problem/Motivation

I begin installing and using radix. My design need to add some regions.
I added the regions to .info.yml then I go to templates and found page.html.twig
and there only found this:

{% include 'radix:page' %}

and some comments about:

* The doctype, html, head and body tags are not in this template. Instead they
 * can be found in the html.html.twig template in this directory.

So I go to html.html.twig

{% include "radix:html" %}

So I'm not sure where is the twig, where is the html (?)

I'm sure my doubts are partly related to Single-Directory Components but
my question is about how can I begin to add region?

Do I need to get the component form radix main theme and copy to my subtheme?

Do I need to change something in page.html.twig?

πŸ’¬ Support request
Status

Active

Version

6.0

Component

Documentation

Created by

πŸ‡²πŸ‡½Mexico koffer

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

Comments & Activities

  • Issue created by @koffer
  • {% include "radix:html" %} In SDC world, it means that go load the html.twig file from the Radix component list. I suggest you start by reading the documentation and watching the first part of the video tutorial

    But in short, yes, you copy over the component to your subtheme and modify it there. For an easier process, I suggest using drupal-radix-cli

    Marking this as closed. feel free to ask more questions if its unclear after going through the items above.

  • πŸ‡ΊπŸ‡ΈUnited States tstermitz Colorado

    Yeah, this new world of components takes a little getting used to.

    In your case, for adding some regions, you probably don't need to copy over the radix:html component to your mysubtheme:html .

    For adding page regions, just copy over the radix:page-content and possibly radix:page components. Those components are where you can create some more regions. You would use mysubtheme:page-contents if you want regions with constrained width; you might use mysubtheme:page if you want additional full-width header or footer regions.

  • πŸ‡²πŸ‡½Mexico koffer

    Thank you very much for the answers. I see that part of my question has to do with SDC World, but I didn't want to start changing too many twig files without knowing, without having some answers. I really like the look of Radix; I'll continue learning how to use it.

Production build 0.71.5 2024