Problem/Motivation
(Taggued beta5/major because it is a fix I will need for DruaplCon Chicago demos)
Contrary to Views & Entity View buildables, Page Layout display builder is no printed with the usual page layout but in a bare bone one (without blocks and regions), this is good.
However, this "bare bone" page layout is not bare enough:
page.html.twigis still loaded- the page title is displayed.
This make the UI too busy, and generate confusion about what will be the final render.
Proposed resolution
Render Display Builder directly into html.html.twig's page slot.
The current behavior is this one:
entity.page_layout.display_builderroute has_display_builder_routeoptions (which may be renamed)- The option is caught by
PageVariantSubscriberwhich is loading Core's simple_page plugin.
Maybe simple_page is not "simple" enough.
Remaining tasks
_display_builder_route is also used in display_builder_views.views.manage route. IS it a leftover? Can we remove it?
Issue fork display_builder-3579216
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pdureau commentedComment #4
pdureau commentedDone & pushed.
Because we now have 2 PageVariant plugins in the module ,I have renamed the first for clarity:
PageLayoutPageVariantis the new name ofDisplayBuilderPageVariantFullPageBuilderPageVariant: is the one added in this ticketLet's challenge the naming if it is not clear enough yet.
Remaining work:
li>
Comment #5
pdureau commentedComment #6
pdureau commentedComment #9
mogtofu33 commented