Acquia Cohesion renames to Site Studio from version 6.2. Tell me more.

    Custom component definition file

    Each custom component definition file must have the following properties:

    Each custom component definition file can also have the following, optional, properties:

    Example structure 1:

    name: Custom component JS with template
    category: cpt_cat_hero_components
      js-template.js: {}[email protected]/slick/slick.min.js: { type: external, minified: true, attributes: { defer: true, async: true } }
      js-template.css: {}
    form: form.json
    html: html-template.html
    preview_image: preview.png

    Example structure 2:

    name: Twig custom component
    category: cpt_cat_example
    template: template.html.twig
        type: node
          - article
          - layout_page
    form: form.json
      twig-component.css: {}
    preview_image: preview.png


    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


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