PHPackages                             digitalwerk/content-element-registry - 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. digitalwerk/content-element-registry

Abandoned → [devskio/content-element-registry](/?search=devskio%2Fcontent-element-registry)Typo3-cms-extension

digitalwerk/content-element-registry
====================================

Content element registry - helper for registering Typo3 content elements

12.0.5(2y ago)114.3k1GPL-2.0-or-laterPHP

Since Jan 2Pushed 2y ago3 watchersCompare

[ Source](https://github.com/ogrosko/content-element-registry)[ Packagist](https://packagist.org/packages/digitalwerk/content-element-registry)[ RSS](/packages/digitalwerk-content-element-registry/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (20)Used By (0)

⚠️ Project migrated ⚠️
----------------------

[](#️-project-migrated-️)

Project was migrated to another project.

Please continue in [this](https://github.com/devskio/content-element-registry) project

[![](https://github.com/ogrosko/content-element-registry/raw/master/Resources/Public/Icons/Extension.svg?sanitize=true)](https://github.com/ogrosko/content-element-registry/raw/master/Resources/Public/Icons/Extension.svg?sanitize=true) Content element registry
====================================================================================================================================================================================================================================================================

[](#-content-element-registry)

Typo3 extension simplify process of creating new content elements (CE) in [Typo3 way](https://docs.typo3.org/typo3cms/extensions/fluid_styled_content/7.6/AddingYourOwnContentElements/Index.html)

Install
-------

[](#install)

Install extension via composer `composer req digitalwerk/content-element-registry` and activate it in Extension module

Setup
-----

[](#setup)

After activating extension, you have to define your Content elements configuration classes. It can be done in two ways:

1. By defining paths in extension configuration (aka *extConf*). Can contain comma separated list of paths to directories **Example:** `EXT:your_ext_1/Classes/ContentElements/,EXT:your_ext_2/Classes/ContentElements/`[![](./Resources/Public/Images/ExtConfSettings.png)](./Resources/Public/Images/ExtConfSettings.png)
2. By registering Listener in `Services.yaml` of your extension as follows:

```
  Vendor\Extension\EventListeners\ContentElementRegistryListener:
    tags:
      - name: event.listener
        identifier: 'contentElementRegistryListener'
        event: Digitalwerk\ContentElementRegistry\Events\ContentElementRegistryClassEvent
```

Method `Vendor\Extension\EventListeners\ContentElementRegistryListener` can looks like this:

```
