/contao-customcontentelements-bundle

Contao 4 custom content elements

Primary LanguagePHPGNU Lesser General Public License v3.0LGPL-3.0

Custom content elements for Contao 4

Version License Downloads

Now compatible with Contao 4.4 lts and 4.9 lts (Contao 4.10+ not tested) !!

About

Create your own content elements with individual input fields.

Almost any input mask for content elements can be created, from very simple text entries to complex input structures with a choice of images, pages and various options.

Custom content elements consist of a template and any number of patterns that provide the various input fields. The patterns can be configured in such a way that they give the content data to the template, where it can be output into any corresponding HTML structure.

This makes it possible to implement both simple widgets (such as 'hero images') and extensive information boards (like 'team pages' with names, e-mails, numbers and addresses of the employees). And all the content can be accessed in a simple and elegant way.

Notice

There was a complete database redesign from Version 1.x to 2.x. A direct upgrade is not possible and all custom content elements must be re-created.

Install

Contao manager

Search for the package and install it

agoat/contao-customcontentelements

Managed edition

Add the package

# Using the composer
composer require agoat/contao-customcontentelements

Registration and configuration is done by the manager-plugin automatically.

Standard edition

Add the package

# Using the composer
composer require agoat/contao-customcontentelements

Register the bundle in the AppKernel

# app/AppKernel.php
class AppKernel
{
    // ...
    public function registerBundles()
    {
        $bundles = [
            // ...
            // after Contao\CoreBundle\ContaoCoreBundle
            new Agoat\CustomContentElementsBundle\AgoatCustomContentElementsBundle(),
        ];
    }
}