PHPackages                             inspiredminds/contao-content-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. [Templating &amp; Views](/categories/templating)
4. /
5. inspiredminds/contao-content-templates

ActiveContao-bundle[Templating &amp; Views](/categories/templating)

inspiredminds/contao-content-templates
======================================

Contao extension that allows you to define content templates for your page content.

1.2.7(1mo ago)115231[1 issues](https://github.com/inspiredminds/contao-content-templates/issues)LGPL-3.0-or-laterPHPPHP &gt;=8.2

Since Aug 13Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/inspiredminds/contao-content-templates)[ Packagist](https://packagist.org/packages/inspiredminds/contao-content-templates)[ Docs](https://github.com/inspiredminds/contao-content-templates)[ GitHub Sponsors](https://github.com/sponsors/fritzmg)[ RSS](/packages/inspiredminds-contao-content-templates/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (26)Versions (23)Used By (0)

[![](https://camo.githubusercontent.com/24dcbcb2f8bee9f4b9e30ff6d584b4d15fbf2df5473b594dc2a59ad0a3177fb3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7370697265646d696e64732f636f6e74616f2d636f6e74656e742d74656d706c617465732e737667)](https://packagist.org/packages/inspiredminds/contao-content-templates)[![](https://camo.githubusercontent.com/04079f9f0f4826ea7e44937a3b6b9e50eba5a5ba08ddda495f656e85b563ead6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e7370697265646d696e64732f636f6e74616f2d636f6e74656e742d74656d706c617465732e737667)](https://packagist.org/packages/inspiredminds/contao-content-templates)

Contao Content Templates
========================

[](#contao-content-templates)

In Contao, the regular content of a page can be made up of different articles, each assigned to different sections of a page layout, and each containing different content elements which in turn can be of different types and contain different settings and CSS classes.

When implementing a website with complex layouts and designs in Contao, it can be helpful for the editors to have boilerplates available for different types of content pages. This extension allows you to create articles and content elements outside the regular site structure as "content templates", containing the appropriate settings for each article and content element and dummy or example texts within the content elements. These content templates can then be applied to any regular page in the site structure. The articles and content elements will then be copied over to the target page.

The extension also allows you to re-apply a content template again to a site. This will not override any actual textual content, but, if configured, will instead update other properties of each article and content element with the ones from the source template. Also any new article or content element, that did not exist in the target, will then be created.

Applying Content Templates
--------------------------

[](#applying-content-templates)

Within the site structure in the back end, there will be a new global operation called *Apply content template*. When activated you will have the opportunity to select a regular page in your site structure to which you want to apply a content template to. Once a page has been selected a pop-up will show allowing you to select the content template. The content template will be applied after confirming the selection.

By default any previously existing articles will remain in the target page. However, if you want to automatically delete *empty* articles in the target, the following option can be enabled in the bundle configuration:

```
# config/config.yaml
contao_content_templates:
    delete_empty_articles: true
```

Re-applying Content Templates
-----------------------------

[](#re-applying-content-templates)

This works the same way as applying content templates. However, if you want the properties of articles or content templates to be updated with the properties of the source template, you first need to explicitly define which properties should be taken into account. This can be done via the bundle configuration. For example:

```
# config/config.yaml
contao_content_templates:
    copy_properties:
        tl_article:
            - customTpl
            - protected
            - groups
            - guests
            - cssID
        tl_content:
            - customTpl
            - protected
            - groups
            - guests
            - size
            - floating
            - fullsize
            - perRow
            - perPage
            - galleryTpl
            - cssID
```

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance88

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~82 days

Recently: every ~260 days

Total

22

Last Release

52d ago

PHP version history (2 changes)1.0.0-beta.1PHP ^7.2 || ^8.0

1.2.4PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f6ec05570f72d0fcc4d0a4fef2309799d53badf8b30484284e73724661e0d8?d=identicon)[fritzmg](/maintainers/fritzmg)

---

Top Contributors

[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (41 commits)")

### Embed Badge

![Health badge](/badges/inspiredminds-contao-content-templates/health.svg)

```
[![Health](https://phpackages.com/badges/inspiredminds-contao-content-templates/health.svg)](https://phpackages.com/packages/inspiredminds-contao-content-templates)
```

###  Alternatives

[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k92](/packages/contao-community-alliance-dc-general)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)

PHPackages © 2026

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