Description of the need
This is a follow-up to https://github.com/backdrop/backdrop-issues/issues/779#issuecomment-9139... that deserves to be a stand-alone issue.
Keep in mind that we also have the Layouts UI that can be used in place of "Manage display" long term if what we end up wanting is drag-and-drop that includes laying out content on the page. Field configuration (Manage fields) could become the same pattern as adding and configuring a block.
Proposed solution
- An addition to the core blocks API:
- allow some blocks to be marked as "Full-page only"
- An addition to the core layouts API:
- allow some layouts to be marked "Full-page only" to indicate that they include things like header, footer, messages, page title, tabs, etc.
- All other layouts ("Mini Layouts") will provide only regions for elements to be placed. (The default region is required)
- New Mini Layout renderers:
- for edit:
- do not automatically add blocks for messages, page title, tabs, etc
- a modified list of available blocks "Full-page only" blocks like messages, page title, etc, should be excluded
- other changes may also be necessary
- for view:
- does not render any blocks for messages, page title, tabs, etc
- other changes may also be necessary
- for configure template:
- does not use
<header>
and<footer>
elements or add header / footer regions - other changes may also be necessary
- does not use
- for edit:
- In the Field UI
- On the default UI:
- add a toggle between "Render fields by weight" vs "Render fields via mini layout" (language TBD)
- For the New UI:
- Replace the "Manage display" interface with the edit renderer for mini layouts
- All fields rows should be replaced by field blocks (sans block markup?)
- place these in the "default" region by default
- On the default UI:
Alternatives that have been considered
- Display Suite
Additional information
There are several other modules that could benefit from these "mini layouts", and having a universal way to share them across modules would be ideal. * Display Suite * Layout Paragraphs * Mini Layouts
Draft of feature description for Press Release (1 paragraph at most)
Backdrop now includes...
Recent comments
@indigoxela and @quicksketch - Thank you. This was the part I was missing. I was not getting the alignment options in the balloon toolbar, because I had not enabled the Float Images...
CKEditor 5 - How to align images
Out of the box: click on the image, then use the balloon toolbar to select alignment: You can also click the Pencil icon to open the image dialog, where the alignment options are also...
CKEditor 5 - How to align images
You seem to be using IMCE, is that correct? A little bit more info about your setup would be helpful, though. Your screenshot looks like it's from Drupal 7 ... Alignment in CKE5 happens...
CKEditor 5 - How to align images