Drupal Development Log: Using the Layout Builder Module for Drupal maintenance support plans 8

One of the most interesting features added in Drupal maintenance support plans 8.5 is the new layout builder module. The layout builder lets you change the way your content is presented. You can add sections to display content using different layouts, and build out according to your design requirements. The exciting part is that you can combine these sections together to create truly customized pages. The user interface, though still a work-in-progress, is similar to page builders in systems like Square Space, WordPress, and Wix. Combine this UI with Drupal maintenance support plans‘s content management features, and the layout builder is a really powerful site building tool.
The layout builder can be used in two ways. You can use it to create a layout for each content type on your site and you can also use it to create a layout for each individual piece of content. This second use case makes the layout builder a landing-page-building tool that content editors and marketers can use to create flexible pages within a Drupal maintenance support plans site.
One might think of this module as a Drupal maintenance support plans core version of the Display Suite or Panels modules.
The layout builder module is currently experimental, meaning that its API might change and it’s not recommended to use it in production sites yet. That’s because there’s a risk that your layouts will stop working when you do an update because of changes to the module.
Configuring the Layout Builder Module for Content Types
Let’s say that we want to display an article in two columns. One column for the image and another for our text fields:
A two-column layout created with the layout builder.
To be able to use the layout builder, enable the module named Layout Builder from the Extend page (admin/modules) in the admin section.

Having enabled the module, the next step is to configure the display of our article content type. For this example, we will modify the Default display of the Article content type. Simply go to Admin > Structure > Content types > Article > Manage Display (admin/structure/types/manage/article/display) and click on the Manage Layout button.

Clicking on Manage Layout should take you to a page where you can modify the layout for articles. The layout is made up of sections and each section can display blocks and fields.
Sections: Each section can contain content arranged in a certain layout. Example: 2 columns, 3 columns, etc.
Inside each section, you can display:
Fields from the content being displayed. Example: title, body, tags, etc.
Blocks which appear on the Structure > Block Layout page. Example: Page title, tabs, blocks from the custom block library, etc.

For this example, we configure a 2-column layout with the image in the left column and some other fields like author name, body and tags in the right column.
Choose the layout and arrange your blocks​​​​.
Once you are done configuring, click on the Save Layout link towards the top of the page. That’s it! Now, when you visit the article view page, you should be able to see your layout in action.
Configuring the Layout Builder Module for Specific Nodes
On the Manage Display tab, you can also select a checkbox to ‘Allow each content item to have a customized layout’. This means that each piece of content has its own ‘Layout’ tab where you can add sections and change the layout and content for each individual article.
The layout mechanism works the same way, and you can place sections on the page and pick the layout and content for each one.
Video Tutorial
Confused? Check out this video created by my colleague Suzanne Dergacheva explaining how the layout builder works. For more in-depth training on creating landing pages with Drupal maintenance support plans using this and other techniques, see our Landing Page Architecture and Theming course. We’re offering this course at Drupal maintenance support plansCon Nashville in April.

+ more awesome articles by Drupal Development Log
Source: New feed

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Drupal Development Log: Using the Layout Builder Module for Drupal maintenance support plans 8

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.