https://github.com/agoat/contao-customcontentelements-bundle
Contao 4 custom content elements
https://github.com/agoat/contao-customcontentelements-bundle
contao contao-bundle contao-content-elements contao4 content elements
Last synced: 23 days ago
JSON representation
Contao 4 custom content elements
- Host: GitHub
- URL: https://github.com/agoat/contao-customcontentelements-bundle
- Owner: agoat
- License: lgpl-3.0
- Created: 2016-08-23T14:46:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-22T11:48:54.000Z (over 3 years ago)
- Last Synced: 2025-12-14T15:12:07.488Z (4 months ago)
- Topics: contao, contao-bundle, contao-content-elements, contao4, content, elements
- Language: PHP
- Homepage:
- Size: 518 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Custom content elements for Contao 4
[](http://packagist.org/packages/agoat/contao-customcontentelements)
[](http://packagist.org/packages/agoat/contao-customcontentelements)
[](http://packagist.org/packages/agoat/contao-customcontentelements)
#### 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
```bash
agoat/contao-customcontentelements
```
### Managed edition
Add the package
```bash
# Using the composer
composer require agoat/contao-customcontentelements
```
Registration and configuration is done by the manager-plugin automatically.
### Standard edition
Add the package
```bash
# Using the composer
composer require agoat/contao-customcontentelements
```
Register the bundle in the AppKernel
```php
# app/AppKernel.php
class AppKernel
{
// ...
public function registerBundles()
{
$bundles = [
// ...
// after Contao\CoreBundle\ContaoCoreBundle
new Agoat\CustomContentElementsBundle\AgoatCustomContentElementsBundle(),
];
}
}
```