[TASK] Add some typoscript
This commit is contained in:
49
ext_localconf.php
Normal file
49
ext_localconf.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
defined('TYPO3_MODE') || die('Access denied.');
|
||||
|
||||
call_user_func(
|
||||
function()
|
||||
{
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||
'Cjel.TemplatesAide',
|
||||
'Dummy',
|
||||
[
|
||||
'Dummy' => 'list'
|
||||
],
|
||||
// non-cacheable actions
|
||||
[
|
||||
'Dummy' => ''
|
||||
]
|
||||
);
|
||||
|
||||
// wizards
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
|
||||
'mod {
|
||||
wizards.newContentElement.wizardItems.plugins {
|
||||
elements {
|
||||
dummy {
|
||||
iconIdentifier = templates_aide-plugin-dummy
|
||||
title = LLL:EXT:templates_aide/Resources/Private/Language/locallang_db.xlf:tx_templates_aide_dummy.name
|
||||
description = LLL:EXT:templates_aide/Resources/Private/Language/locallang_db.xlf:tx_templates_aide_dummy.description
|
||||
tt_content_defValues {
|
||||
CType = list
|
||||
list_type = templatesaide_dummy
|
||||
}
|
||||
}
|
||||
}
|
||||
show = *
|
||||
}
|
||||
}'
|
||||
);
|
||||
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
|
||||
|
||||
$iconRegistry->registerIcon(
|
||||
'templates_aide-plugin-dummy',
|
||||
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
||||
['source' => 'EXT:templates_aide/Resources/Public/Icons/user_plugin_dummy.svg']
|
||||
);
|
||||
|
||||
}
|
||||
);
|
||||
## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
|
||||
Reference in New Issue
Block a user