Problem/Motivation
We should have a set of handbook pages as part of making this module stable.
The current handbook is located here: https://www.drupal.org/docs/8/core/modules/experimental-layout-builder
Proposed resolution
Current outline is:
Layout Builder overview
- Summarize what Layout Builder is capable of
- *Briefly* describe how it can be used in a default or override context, include links to the "Creating Layout Defaults" and
"Creating Layout Overrides" pages in this handbook for more details. - *Briefly* describe inline block functionality, can link to more detailed coverage of this topic in the "Building Layouts Using The
Layout Builder UI" page.
Creating Layout defaults
- Layout Defaults in Layout Builder (summarizes what they are and their specificity)
- Example: Creating a Layout Default for the Article content type
Creating Layout Overrides
- Layout Overrides in Layout Builder (explanation)
- Example: Creating a Layout Override for an Article Node
Building Layouts Using the Layout Builder UI
- Accessing the Layout Builder UI
- Example: Building a Page Layout in Layout Builder
- Adding Sections
- Add content (Blocks) section incomplete
- @todo Editing existing Layouts
- @todo Moving blocks
- @todo Cancelling Changes and reverting to defaults
Additional modules
- Layout Builder Restrictions
Theming and Extending
- Defining custom layouts
- @todo add section on theming
Other pages could be
Using Layout Builder and Content Moderation
This functionality is not done but will probably need explaining on how it works
To help write docs
Because Layout Builder is experimental and has been changing you try the Layout Builder out either on your computer or using https://simplytest.me/ to make sure the functionality is the same.
We should be documenting the 8.7.x branch.
Online articles/tutorials:
Other sources of inspiration... These might be useful for anyone who wants to help with the docs to brush up on how it works.
But remember functionality might have changed since these were written, so make sure you test with a 8.7.x version of Layout Builder.
Comments
Comment #2
larowlanComment #3
tim.plunkettComment #5
tim.plunkettComment #7
tim.plunkett#2999731: Document Layout Builder functionality in its hook_help() text is better scoped and defined.
Comment #8
tim.plunkettRescoping this to be about the handbook page (https://www.drupal.org/docs/8/core/modules/layout_builder) while the other is about hook_help()
Comment #9
tim.plunkettFor inclusion as a non-node example https://www.phase2technology.com/blog/creating-mega-menu-layout-builder
Comment #10
benjifisherAt least mention this contrib module (if only to spare the regulars on the Slack channel from repeatedly answering the same question): Layout Builder Restrictions
Comment #11
tedbowI have created the start to the page: https://www.drupal.org/docs/8/core/modules/experimental-layout-builder
I made some stub pages.
Comment #12
tedbowComment #13
volkswagenchickTagging for upcoming collaboration days.
Comment #14
volkswagenchickComment #15
tim.plunkettI fixed the handbook page URL instead, it now matches the correct URL in core:
https://www.drupal.org/docs/8/core/modules/layout-builder
Comment #16
benjifisherI added a child page, https://www.drupal.org/docs/8/core/modules/layout-builder/additional-mod..., in response to my comment in #10. I guess that @tedbow is the only one with access to add it to the menu.
Comment #17
volkswagenchickComment #19
bnjmnmHere's the structure I currently have in mind for the documentation. I can move this to the issue summary once there's been an opportunity for users to weigh in and point out items that should be added or removed. Items without @todo already exist in the documentation.
Layout Builder overview
"Creating Layout Overrides" pages in this handbook for more details.
Layout Builder UI" page.
Creating Layout defaults
Creating Layout Overrides
Building Layouts Using the Layout Builder UI
Additional modules
Theming and Extending
Comment #20
xjmI think that's a totally fine organization; thanks @bnjmnm!
(Small content style note: our docs standards specify using sentence-case for handbook page titles. So "Theming and extending" rather than "Theming and Extending", etc. "Layout Builder overrides" is correct because "Layout Builder" is a proper noun.)
Comment #21
webchickMarking as "needs work" to indicate that there's stuff there already. And quite good stuff, too! Assigning to myself to work on this awhile.
Updating the issue summary a bit, including with the contents of #19, I'll get specific feedback from the #documentation folks, too.
Comment #22
webchickFirst order of business:
https://www.drupal.org/docs/8/core/modules/layout-builder
"Layout Builder provides layout building utility for managing the display of all fieldable entities on a site."
Glarby flarby blergen flerg? :)
How about:
"Layout Builder provides an easy-to-use page builder for site builders and content authors to create layouts to templated content (e.g. all articles) or one-off content (e.g. a single About Us page)."
...or something more "human friendly." :) (Set it to that; we can further refine and/or revert the revision if you disagree.)
Comment #23
webchickFilled out the stub page at https://www.drupal.org/docs/8/core/modules/layout-builder/layout-builder... with some actual text. Copy/pasted some of the text from https://dri.es/why-drupal-layout-builder-is-so-unique-and-powerful as a starting point. We will probably want a screenshot or two on this page as well, but probably best to wait until things are pinned down.
Comment #24
webchickAnd adjusting issue summary to that effect...
Comment #25
webchickOoof. More of this "entities, instances, bundles... oh my!" speak at https://www.drupal.org/docs/8/core/modules/layout-builder/creating-layou....
This is important information, for people who understand how Drupal's underpinnings work. However, this interface is largely targeted at people who do not. So I feel like maybe we should create a separate page, or sub-section on each of these pages, like "For techies" or "Under the hood" or something.
For now, I changed:
To:
This is still a lot more "in the weeds" than I would otherwise like (we try and avoid using "entity" in documentation, and the "Anglicization" also contains controversial language like "sub-type" — eep!); however, I can see why it's important to understand these concepts because otherwise it's rife for confusion about "Yo! Why did my layout not show up?!"
Comment #26
webchickSkipping around a bit, https://www.drupal.org/docs/8/core/modules/layout-builder/additional-mod... looks good. I added some descriptions to those modules, copy/pasta/modified from the project pages.
Though one thing of note is https://www.drupal.org/project/layout_builder_modal is not covered by the sec. team so I'm not sure if we want to recommend it in "official" docs.
Comment #27
webchickPut some actual content at https://www.drupal.org/docs/8/core/modules/layout-builder/theming-and-ex... too, linking it to https://www.drupal.org/docs/8/api/layout-api which I just learned exists. (Thanks, @tim.plunkett!) The theming part is wayyy above my pay grade, however, and also (according to the team) not actually writable yet while things are still in flux.
Updating issue summary.
Comment #28
webchickOk, out of steam for now.
Basically, I'd like to talk more about what level of sausage factory we're exposing here, and/or who the target audience of these docs are, and see if we can negotiate something sensible there.
Also, I spoke with @jhodgdon in the #documentation channel, and she pointed out that:
and also...
Which is a great idea for 8.8. :)
But since this is not part of the docs gate, removing that inference in the issue summary, and also removing the tag. This still remains a priority for the team, but it makes more sense to drill on it after we (hopefully) manage to make the module stable in time for 8.7. (Or in any event, after the UI is locked down.)
Comment #29
bnjmnmVery pleased that @webchick honed in on exactly the areas that I was concerned about. "Glarby flarby blergen flerg" is a pretty apt description for some of the things I could't quite articulate my reservations about 🙂
Comment #30
eatingsI re-rewrote Angie's introductory blurb at https://www.drupal.org/docs/8/core/modules/layout-builder with something I felt was a bit more humane and introductory-user-friendly:
I understand that this tone and voice is a bit more personal/less explicitly developer-centric than pretty much every other core module meta-page, but to quote Muad'dib when he first met Liet-Kynes... "It seemed the right thing to do."
If that sort of voice is okay, I'm happy to expand it to the rest of the Layout Builder docs.
Comment #31
bnjmnm@eatings, as someone who wrote many of the initial drafts of the Layout Builder documentation, I fully support your efforts in making it friendlier and more human readable. It's difficult to write properly-empathetic user-friendly documentation for something we spend 50+ hrs a week building. I'm very pleased you're interested in expanding on this.
The only place that would ever be of concern is if it removes important technical details. I certain they can coexist happilyl I'll keep an eye on the changes and chime in if this happens to come up. You are also welcome to ask questions in this issue or directly message me in Drupal slack if you'd like clarification on how something works before you write about it. I'm pleased with how approachable the Layout Builder UI is, and similarly pleased that there is interest in making the documentation friendlier as well.