Because we generated proper Layout plugins, they must be usable with the popular https://www.drupal.org/project/layout_paragraphs module (11 000 installs )
But it is better to check
Because we generated proper Layout plugins, they must be usable with the popular https://www.drupal.org/project/layout_paragraphs module (11 000 installs )
But it is better to check
Comments
Comment #2
pdureau commentedComment #3
pdureau commentedComment #4
g4mbiniComponentLayout with layout_paragraphs is working off-the-shelf.
Tested with UI Suite DaisyUI as follows:
What could be very kool in the node edit would to have CSS from front loaded inside the Paragraphs field.
There is an issue about that there : https://www.drupal.org/project/layout_paragraphs/issues/3208180
Comment #5
g4mbiniComment #6
pdureau commentedComment #7
pdureau commentedSo, everything is OK on our side.
Comment #9
pdureau commentedComment #10
fschaff commentedHi,
I'm trying to create a custom layout component available in layout_paragraph.
Starting from something simple :
I can't get the attribute classes for the regions
Is there anything I can pass to the twig or configure in the yml?
Thanks
Comment #11
just_like_good_vibesHello,
you need to create props to store attributes for each section.
in the component definition, with $ref: ui-patterns://attributes
you can then use them in twig
Comment #12
fschaff commentedThanks,
I have now this:
and this:
But the col_1_attributes and col_2_attributes are empty…
Do I miss something?
Comment #13
fschaff commentedIf it ever helps anyone, no need to define attributes in the props, just add in the twig :
I don't know if this is the right method, but it works with layout_paragraphs.