- Issue created by @rraney
- π¬π§United Kingdom robcarr Perthshire, Scotland
I only see this problem in Gin theme when used to edit content. If Claro is used then the normal Save/Preview etc buttons are rendered.
See #3360044-5: Submit button on edit form gets replaced by contact-forms submit-button β which re-iterates the problem... but not a solution, alas
- πΊπΈUnited States rraney
There are at least two big issues with Gin that have forced me to switch to Claro. I wish the best parts of both would merge into a dream theme :). This may be a Gin issue and not Layout Paragraphs, as you mentioned.
- πΊπΈUnited States fholub13
Encountered this on a client site recently. Setup:
- PHP 8.1
- Gin 4.1.0
- Layout Paragraphs 2.1.1
- Embedded webform block paragraph on the page
What I believe is happening is that the form submit/action of the embedded form that's being rendered in the layout is clobbering the form submit/action of the node edit page.
Temporary workaround that "fixed" the issue for us:
Layout Paragraphs can be configured to display a Preview mode of the paragraphs within the layout. If one doesn't exist yet, create a Preview view mode for embedded block paragraph type and modify the display format to
Block field label
. This ensures that the embedded form will only render as a field label inside the layout instead of as a full form. Once I did this, the save/submit button on the node edit form started to render again.Of note, this issue doesn't appear on a local environment, only on a staging/dev server. CSS/JS aggregation settings don't seem to have an effect on this behavior. Switching to the Claro admin theme also works around this issue. That said, I believe this is something that should be accounted for and fixed in Layout Paragraphs rather than in Gin.