In some instances, the entity rendering the paragraph grid formatter is nested within another grid field, or you theme is configured to wrap your fields within a container. For example this is how things come out of the box in Radix.

I found that this had the unintended consequence of creating nested containers. In an awesome turn of events, simply adding an "Exclude" option and associated check for it to the field formatter settings works.

Comments

devkinetic created an issue. See original summary.

devkinetic’s picture

Here is a patch that shows this working for Bootstrap 4. From here it's as simple as adding the config ifor the other frameworks. Since the install config is changing, a final version of this would have to hook_update the existing configs with the new option.

jfeltkamp’s picture

Status: Active » Needs review

Hey @devkinetic,
yes you are right. This is a missing option for different use cases (even when to avoid nested paragraphs is on of the main goals of this module).

I fixed that with minimal modifications in the wording (exclude => none) in the new version tag 1.2.
Please also note the changes in the template 'field-paragraphs-grid-formatter.html.twig'. If the option 'none' is selected, then really no wrapper div should be put out.

jfeltkamp’s picture

Status: Needs review » Fixed
devkinetic’s picture

Big thumbs up, the icing on the cake of this module. My page builders love it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

devkinetic’s picture

I just wanted to follow up to this... I recently updated a site from 1.0 and had to manually edit my config for bs4 to add the exclude option, then reimport my config. Until I did this, the dropdown did not have the correct option.