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.
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.
Search for the package and install it
agoat/contao-customcontentelements
Add the package
# Using the composer
composer require agoat/contao-customcontentelements
Registration and configuration is done by the manager-plugin automatically.
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(),
];
}
}