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
Thank you, olafski I had already done that, but switching languages wasn't tied to whatever layouts were needed. I'll work with the other reply, see if I can replicate the...
How to translate my site content
Both issues solved! Thank you.
View/Edit tabs missing
Hello, Backdrop CMS has options for multilingual sites, but they are limited and do not cover all needs. A complete solution for a multilingual site requires the installation of i18. I...
How to translate my site content