Closed (fixed)
Project:
UI Patterns (SDC in Drupal UI)
Version:
2.0.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Sep 2024 at 13:53 UTC
Updated:
7 Apr 2025 at 23:01 UTC
Jump to comment: Most recent
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.