2018-11-03 19:29:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
|
|
'Workshop.ExampleExtension',
|
|
|
|
'Address',
|
|
|
|
[
|
|
|
|
'Address' => 'index, edit, update'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'Address' => 'update'
|
2019-08-21 18:13:00 +02:00
|
|
|
],
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
|
2018-11-03 19:29:21 +01:00
|
|
|
);
|
|
|
|
|
2019-08-21 18:13:00 +02:00
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
|
|
|
|
@import "EXT:example_extension/Configuration/TypoScript/*.typoscript"
|
|
|
|
'));
|
|
|
|
|
2018-11-03 19:29:21 +01:00
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
|
|
|
|
mod {
|
|
|
|
wizards {
|
|
|
|
newContentElement {
|
|
|
|
wizardItems {
|
2019-08-21 18:13:00 +02:00
|
|
|
common {
|
|
|
|
show = *
|
2018-11-03 19:29:21 +01:00
|
|
|
elements {
|
|
|
|
exampleElement {
|
2019-08-21 18:13:00 +02:00
|
|
|
iconIdentifier = content-store
|
2018-11-03 19:29:21 +01:00
|
|
|
title = Example title
|
|
|
|
description = Example Description
|
|
|
|
tt_content_defValues {
|
|
|
|
CType = list
|
|
|
|
list_type = exampleextension_pluginkey
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
');
|
|
|
|
})();
|