Create pages from predefined templates

Installs: 488

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 7

Forks: 0

Open Issues: 3


1.2.0 2020-04-25 10:47 UTC

This package is auto-updated.

Last update: 2024-03-25 19:46:38 UTC


This extension provides the possibility to provide and easily use boilerplates for page creation.

Simple mode

The simple mode is enabled by default and can be disabled by the integrator within the extension manager. With this switch the Page Template module will be disabled and a new option in the click menu is enabled. Also she must provide the UID of the storage folder of the page template. An editor now can create pages with content elements within this storage folder.

  • Enable simple mode in Extension Manager > pagetemplates
  • Add storage PID of your template folder in Extension Manager

YAML mode

Provides yaml based templates for TYPO3 pages. Allows an editor to select a page template for creating a new page. Allows editing of page and content properties on creation. After disabling the simple mode in the extension manager, a new module will be displayed.

Page TSConfig:

Page TSConfig Default Description
mod.web_PagetemplatesTxPagetemplates.storagePath Path to the directory containing the YAML configuration files (EXT: syntax is supported)


Folder structure:

  • Templates.yaml
    • Structure
      • example1.yaml
      • example2.yaml

Main Templates.yaml file contains the configuration for the available templates:

        name: "Example Template 1"
        previewImage: "EXT:pagetemplates/ext_icon.svg"
        description: "This is an example template for use in the templates extension."
        name: "Example Template 2"
        previewImage: "EXT:pagetemplates/ext_icon2.svg"
        description: "This is an example template for use in the templates extension."

The keys are the template identifiers (the file name for the configuration of a single template). Name, previewImage and description are used for displaying a preview of the chosen template.

A single template configuration looks like this:

        description: this is a superb description of the template
        onCreateEditFields: title,description
            title: some title
            description: and a description
            description: This content element should be used for blobbber
            onCreateEditFields: header
                header: a content element header
                CType: div
                colPos: 0
            description: a hidden element which will only be created
                header: some other content element
                CType: div
                colPos: 0
            description: and a third element
            onCreateEditFields: header,subheader
                header: enter something sensible here, please
                CType: textmedia
                bodytext: some default bodytext stuff

Be aware that you can only configure tables that are stored directly on the page and have a pid field.

Usage in YAML mode

  • Click on the module in the main module menu
  • Choose a parent page
  • Choose a template
  • Fill template variables
  • Click "Save new page"

Usage in Simple mode

  • Choose a page in page tree and open the context menu
  • Choose "Create page from template"