Account created on 22 January 2014, almost 11 years ago
#

Merge Requests

Recent comments

πŸ‡§πŸ‡·Brazil jckresko

jckresko β†’ made their first commit to this issue’s fork.

πŸ‡§πŸ‡·Brazil jckresko

Please, take a look!
https://www.drupal.org/project/layout_paragraphs/issues/3208180#comment-15107922 ✨ Provide frontend editing experience for Layout Paragraphs. Active

πŸ‡§πŸ‡·Brazil jckresko

I've created a Issue fork and made some changes to allow that the field displays the default theme templates and load a library.

1 - After update with the changes, go to /admin/config/content/layout_paragraphs/default-theme and check the checkbox option.
2 - Add your default theme library to load js and css. I created a separated styles file includind .lp-builder prepend each style so the styles will be applied on Layout Paragraphs Field only without conflicts.
Eg: mytheme/admin-library

I added the hook_theme_registry_alter to change paragraphs item and to add all your paragraphs--type templates too (if there is).
This modification search for template files inside your custom theme.

I hope it's useful and can set a path for this to be implemented.

An alternative that the module already has is to use the Layout Paragraph Builder field formatter on the 'manage display' and add or edit the paragraphs within the default theme.

Feel free to use, modify and even think it's bad :)

Production build 0.71.5 2024