Version:
Cohesiondx.com

Are you looking for the latest documentation?

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

    Creating full content templates

    Create Full content templates for full page views of your content (Full view modes). For example, create a Full content template for the Article content type if you want to show articles on their own page, 

    The Full content template renders within the Content region defined in your theme or within your DX8 Master template.

    Content-template-in-master-template.svg

    Create a full content template

    There are three steps to creating a content template.

    For the purpose of an example, the following steps are for creating Content type templates as this is the most common use case, but the same process applies for other content entity types like Taxonomy vocabularies. 

    Step 1 - Choose a content entity to template

    The first step is to select what you're going to make a full template for. For example, the Article content type. 

    1. Navigate to DX8 > Templates > Content templates
    2. For Content types and this example click on Content type
    3. Click on one of the Accordions to open the list of template options for that Content type
    4. Locate the full view mode template. This is at the top and labeled within the View mode column
    5. Click Create in the Operations column.

    Create-template-entity.png

    Step 2 - Name and save your template

    The second step is to name and save your template. Don't worry about its layout yet, this is covered later.

    1. On the next screen, enter a name for your template in the Title field
    2. If you've created a Master template, select it in the Master template field
    3. At this point you haven't created a layout for your template but click Save and continue to save your progress.

    Name-template-entity.png

    Step 4 - Layout your template

    Layout your template using the Layout builder. For more information, see Using the layout builder. 

    To begin with, add dummy content directly into your template. This is so you'll be able to preview what your template will look like before connecting it to the live data from your Content type fields (This is done later).

    Step 5 - Preview your template layout

    Click on the Preview icon to preview your component layout. For more information, see Using the Layout canvas preview

    Step 6 - Connect your template fields to your content type fields

    Once you've created your template layout, you can connect it to fields within your Content type so that it uses real content provided within your nodes rather than the dummy content you added when building your layout.

    The process of linking your layout to fields is the same when creating any type of template using DX8. For that reason it's been described on a separate page, see Connecting your templates to fields.

    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.