Hi Team,
I’d like to propose a small but useful enhancement to the out-of-the-box (OOTB) Container and Heading fragments may be more.
Current behavior
There is currently no way to assign a custom id attribute to the OOTB Container or Heading fragments through the fragment configuration. The rendered HTML does not expose an option to set one, and the only workaround is to either clone the fragment and modify the FreeMarker template, or inject the ID via JavaScript at runtime.
Why this matters
Having a configurable id on these fragments would unlock several common use cases:
- Anchor links / in-page navigation — linking directly to a section using
#section-id. - JavaScript targeting — selecting specific containers or headings reliably without depending on auto-generated IDs or fragile selectors.
- CSS scoping — applying styles to a specific instance without affecting all containers/headings on the page.