Are you looking for the latest documentation?

Documentation for Acquia Cohesion V6.0 onwards has moved to https://cohesiondocs.acquia.com

    DX8 template inheritance

    While DX8 utilizes the Drupal 8 core template suggestions (including page, content and field level templates), the terminology is slightly different. 

    Templates that would have the suggestion: page.html.twig are called "Master templates." 

    Templates that would have the suggestion: page--content-type.html.twig are the content view mode templates. 

    Field templates remain unchanged as fields are added to DX8 templates using the twig field variables that Drupal supplies as default. For example:

     

    Note that the layout canvas field renders out as a Drupal field. The content and styling for each layout canvas field on a content entity is stored against the field inside content (so there is a pure separation of content and templates). 

    There is a new class of templates for components. These are added dynamically inside any master template or content template as needed and can contain Drupal fields and other component fields. 

    templates.svg

    DX8 knowledge base icon

    Frequently asked questions

    Get instant answers to common questions. Available online 24/7.

    Find answers

    Raise a ticket icon

    Raise a support ticket

    To raise a ticket, sign into Acquia Cloud and select Help in the top menu.

    Raise support ticket

    Acquia

    Copyright © 2020 Acquia, Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.