Adding a section it uses the wrong paragraph template, except during first rendering

Created on 17 November 2024, 3 months ago

Problem/Motivation

The content entry experience is broken if the layout paragraph template is overriden in the theme.

Steps to reproduce

I have a paragraph called section, which has the layout behavior option. This has a template called paragraph--section--default.html.twig

The template loads when viewing content or when the edit page is opened for the first time. However, if I edit the layout settings like color o bg image, the template is no longer being used and instead loads the template from modules/contrib/paragraphs/templates/paragraph.html.twig

Proposed resolution

Make sure the current conten theme is used when rendering the layout paragraph contents.

🐛 Bug report
Status

Active

Version

2.2

Component

Code

Created by

🇨🇷Costa Rica alemadlei

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

Comments & Activities

Production build 0.71.5 2024