This TYPO3 extension is about defining new content elements by just implementing two files in your own extension.
There is an configuration array with the extension key in $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']
where you can define your own providers of content elements. Here is an example:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dw_content_elements'] = array(
'providers' => array(
'my_content_elements' => array(
'pluginName' => 'MyContentElements',
'pluginCategory' => 'My own content elements',
'controllerActions' => array('Elements' => 'render'),
'namespace' => 'Denkwerk.MyContentElements',
'elementsPath' => '/Configuration/Elements',
'elementWizardTabTitle' => 'My content elements',
'addElementsToWizard' => TRUE
)
)
);
There are some mandatory options:
pluginName
: The name of the pluginpluginCategory
: The plugins category (optgroup)controllerActions
: The controller actionsnamespace
: The plugins namespace, vendor and plugin namespace separated by dots
It is recommended that you set you own elementWizardTabTitle
for better overview.