PHPackages                             dynamic/silverstripe-elemental-templates - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dynamic/silverstripe-elemental-templates

ActiveSilverstripe-vendormodule

dynamic/silverstripe-elemental-templates
========================================

Elemental Templates

2.0.3(3mo ago)15.4k2[18 issues](https://github.com/dynamic/silverstripe-elemental-templates/issues)[2 PRs](https://github.com/dynamic/silverstripe-elemental-templates/pulls)1BSD-3-ClausePHPPHP ^8.1CI passing

Since Feb 19Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/dynamic/silverstripe-elemental-templates)[ Packagist](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)[ GitHub Sponsors](https://github.com/dynamic)[ RSS](/packages/dynamic-silverstripe-elemental-templates/feed)WikiDiscussions 2 Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (24)Used By (1)

Silverstripe Elemental Layouts
==============================

[](#silverstripe-elemental-layouts)

A module for Silverstripe CMS that allows CMS users to define reusable page layouts, known as "templates" or "skeletons". These templates provide a predefined set of Elemental blocks that can be used to quickly create pages with consistent layouts and content.

[![CI](https://github.com/dynamic/silverstripe-elemental-templates/actions/workflows/ci.yml/badge.svg)](https://github.com/dynamic/silverstripe-elemental-templates/actions/workflows/ci.yml)
[![Latest Stable Version](https://camo.githubusercontent.com/ff02ceb8bdc1147338cc2f46fcaa1c5c4667a80776f7eb12d9e69293d28e45cb/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d74656d706c617465732f762f737461626c65)](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)
[![Total Downloads](https://camo.githubusercontent.com/8c4af27acfd4623751ba1ce74bd884a0a597a3cd8d9671aaf034aff0343ef145/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d74656d706c617465732f646f776e6c6f616473)](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)
[![License](https://camo.githubusercontent.com/84ad64624ff142cbd96fb8ee21af0aba22a0c2d3c19d97cd20955d1f32a277d0/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d74656d706c617465732f6c6963656e7365)](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)

Features
--------

[](#features)

- **Predefined Templates**: Create reusable templates with predefined Elemental blocks.
- **Page Creation from Templates**: Quickly create new pages based on existing templates.
- **Template Creation from Pages**: Generate templates from existing pages, including their Elemental blocks.
- **Configurable Defaults**: Populate Elemental blocks with default values defined in YAML configuration.

Requirements
------------

[](#requirements)

- Silverstripe CMS ^5
- DNADesign Elemental module ^5.2

Installation
------------

[](#installation)

Install the module via Composer:

```
composer require dynamic/silverstripe-elemental-templates
```

Run `dev/build` to apply database changes.

Usage
-----

[](#usage)

### Creating a Template

[](#creating-a-template)

1. Navigate to the "Elemental Templates" section in the CMS.
2. Click "Add Template".
3. Fill in the template details:
    - **Title**: Name of the template.
    - **Page Type**: Select the page type this template is compatible with.
    - **Elements**: Add Elemental blocks to the template.
4. Save the template.

### Creating a Page from a Template

[](#creating-a-page-from-a-template)

1. Go to the "Pages" section in the CMS.
2. Click "Add Page".
3. Select the desired page type.
4. In the "Template" dropdown, choose a template to apply to the new page.
5. Complete the remaining page details and save.

The selected template's Elemental blocks will be duplicated and added to the new page.

### Creating a Template from an Existing Page

[](#creating-a-template-from-an-existing-page)

1. Open the page you want to use as the basis for a template.
2. In the "More Options" menu, click "Create Blocks Template".
3. A new template will be created with the same Elemental blocks as the page.
4. Edit the template as needed in the "Elemental Templates" section.

Populating Template Elements
----------------------------

[](#populating-template-elements)

The module supports pre-populating Elemental blocks with default values. This is configurable via YAML and supports database fields and relationships.

### Example YAML Configuration

[](#example-yaml-configuration)

```
Dynamic\ElementalTemplates\Models\Template:
  populate:
    DNADesign\Elemental\Models\ElementContent:
      Title: "Default Title"
      Content: "Default content"
```

**Note:** The `$populate` static configuration is checked on the `Template` class to determine whether default values should be applied when duplicating elements from a template.

Roadmap
-------

[](#roadmap)

We recognize that the current implementation only supports configuring population definitions for database fields. Expanding this functionality to include other types of data is a priority, and we are actively working on adding this feature to enhance the module's flexibility and usability.

Logging and Debugging
---------------------

[](#logging-and-debugging)

The module logs key actions, such as template creation and Elemental block duplication, to the Silverstripe log file (`silverstripe.log`). This can help diagnose issues during development.

Contributing
------------

[](#contributing)

Contributions are welcome! Please submit a pull request or open an issue on GitHub.

License
-------

[](#license)

This module is licensed under the BSD-3-Clause license. See the LICENSE file for details.

Maintainers
-----------

[](#maintainers)

- [Dynamic](http://www.dynamicagency.com) ()

Bugtracker
----------

[](#bugtracker)

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

- Create a new issue
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
- Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution
----------------------------

[](#development-and-contribution)

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance64

Regular maintenance activity

Popularity25

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 56.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~39 days

Recently: every ~55 days

Total

19

Last Release

119d ago

Major Versions

1.x-dev → 2.0.02025-05-28

2.0.2 → 3.x-dev2025-10-21

PHP version history (2 changes)1.0.0-beta1PHP ^8.1

3.x-devPHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/867942?v=4)[Dynamic](/maintainers/dynamic)[@dynamic](https://github.com/dynamic)

---

Top Contributors

[![jsirish](https://avatars.githubusercontent.com/u/1163643?v=4)](https://github.com/jsirish "jsirish (25 commits)")[![muskie9](https://avatars.githubusercontent.com/u/870751?v=4)](https://github.com/muskie9 "muskie9 (12 commits)")[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (4 commits)")[![robbieaverill](https://avatars.githubusercontent.com/u/5170590?v=4)](https://github.com/robbieaverill "robbieaverill (3 commits)")

---

Tags

silverstripetemplateselementContent Blockselemental

### Embed Badge

![Health badge](/badges/dynamic-silverstripe-elemental-templates/health.svg)

```
[![Health](https://phpackages.com/badges/dynamic-silverstripe-elemental-templates/health.svg)](https://phpackages.com/packages/dynamic-silverstripe-elemental-templates)
```

###  Alternatives

[dnadesign/silverstripe-elemental

Elemental pagetype and collection of Elements

1151.0M255](/packages/dnadesign-silverstripe-elemental)[wedevelopnl/silverstripe-elemental-grid

Elemental grid module

1014.1k2](/packages/wedevelopnl-silverstripe-elemental-grid)[fractas/elemental-stylings

Collection of useful and reusable SilverStripe Elemental stylings properties

1416.4k1](/packages/fractas-elemental-stylings)[dnadesign/silverstripe-elemental-decisiontree

Element displaying information in regards to answers given to questions

1116.2k1](/packages/dnadesign-silverstripe-elemental-decisiontree)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
