1

Layout Content Type

What is a Layout?

The Layout content type in Drupal is used for creating more structured, visually appealing pages that go beyond simple text and media. It allows content creators to use predefined templates or customizable regions to arrange content blocks, media, and other elements in a grid-like format. Layouts are ideal for creating more dynamically presented pages that require a specific structure and design.

By leveraging the power of Drupal's Layout content type, the user has more flexibility and precision in designing pages that align with your website’s aesthetic and functional needs.

How to Use the Layout Content Type

Step 1: Adding a Layout

  • Go to the Content page in your Drupal admin dashboard.
  • Click Add content.
  • From the list of available content types, select Layout.

Step 2: Creating the Layout
You will see the form to create a new Layout. Here are the main fields and options:

  • Title: Enter the title of your layout. This title will appear in the browser’s title bar and may be used in navigation menus depending on your theme.
  • Body (Optional): If included, use this field to add introductory text or basic information about the layout. This can be styled using the WYSIWYG editor.
  • Layout Configuration:
    • Use Layout Builder or a similar tool to arrange your content.
    • Select a predefined layout or create a custom arrangement using drag-and-drop functionality.
    • Add components like text, images, videos, or custom blocks into the designated regions.
  • Menu Settings (Optional): If you want this layout to appear in a site menu (such as the main navigation), check the "Provide a menu link" box and specify the menu details.
  • URL Alias (Optional): Manually specify a custom URL alias for the layout (e.g., /services-layout). If left blank, Drupal will generate a URL based on the title.
  • Moderation State Options:
    • Draft: The layout will not be visible to public users once saved.
    • Published: The layout will be visible to public users once saved.
    • Archived: The layout will not be visible to public users but remains stored in the backend for future use or reference.
       

Step 3: Save the Layout

  • After configuring your layout and adding all necessary content, click Save at the bottom of the page.
  • If published, the layout will now be live on your site and accessible via the specified URL alias (or the automatically generated one if left blank).