Problem/Motivation
Configuration is missing for custom wrappers when you select one layout. The html output is malformed and is being printed as a normal string. (See Error.png)
When you change from "-none-" to one of the layouts, the "custom wrappers" tab doesn't appear and you can't configure it until you save the selected layout and then going to the tab. (See the sequence Config1.png, Config2.png and Config3.png)
Proposed resolution
Workaround using th UI:
Select the layout and save it. Then go to the "custom wrappers" tab and simply save the default configuration. The module presents a default configuration but it's really not saved on drupal.
With code:
In field_ui.inc set default wrapper for regions in function ds_field_ui_layouts_save.
Thanks to @nicobot for his support and his time for implementing a solution for this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2752801-default-custom-wrappers-4.patch | 1.46 KB | aspilicious |
| #2 | 2752801-default-custom-wrappers.patch | 749 bytes | luismagr |
| Config3.png | 38.25 KB | luismagr | |
| Config2.png | 41.72 KB | luismagr | |
| Config1.png | 18.06 KB | luismagr |
Comments
Comment #2
luismagr commentedHere is a patch that solve this problem for us.
Comment #3
luismagr commentedComment #4
aspilicious commentedHi Luis,
Thank you for the patch!
I added a test so we can't reintroduce this again :).
Bram
Comment #6
aspilicious commentedThank you again for the patch!
Comment #7
nicobot commentedHey! It's great that this went in so fast!!