- Issue created by @orbmantell
- Status changed to Needs work
almost 2 years ago 10:56pm 20 February 2023 - πΊπΈUnited States keiserjb
Trying to use Layout Paragraphs on a D10 site.
Installed the Bootstrap Paragraphs module and was experimenting. When I got to the Callout paragraph type I discovered I could not edit them after creating them. I looked in the template and sure enough, and ID was assigned to each Callout. I removed
{# Sets Unique ID for Accordion from Paragraph ID. #} {% set paragraph_id = 'callout-' ~ paragraph.id.value %} {# Prints Callout template. #} <div{{ attributes.addClass(classes).setAttribute('id', paragraph_id) }}>
from the template and I can edit them now. I think accordions and tabs will not work because of the same issue.
- πΊπΈUnited States keiserjb
Hmm, after patching the accordions to make them work with Bootstrap 5 I can still edit them using Layout Paragraphs. They have IDs. More investigation needed.
Just wanted to confirm that this is an issue for me too.
On our site, we have a field that lets the user assign an
id
to our Section Paragraph. On sections on which this field has a value, we lose the edit controls (they're not just hidden β they aren't even in the markup) while others without a value in theid
field are still editable. When I remove theid
from our Section markup, the controls return. Once I do that, I can clear out the value from theid
field and save the page, replace theid
in our markup, reload the page, and the controls are still there for that particular Section.