TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
call_user_func(static function () {
|
||||
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
|
||||
'form',
|
||||
'Configuration/TypoScript/',
|
||||
'Form'
|
||||
);
|
||||
});
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
call_user_func(static function () {
|
||||
// Register the plugin
|
||||
$contentTypeName = \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
'Form',
|
||||
'Formframework',
|
||||
'LLL:EXT:form/Resources/Private/Language/locallang.xlf:form_new_wizard_title',
|
||||
'content-form',
|
||||
'forms',
|
||||
'LLL:EXT:form/Resources/Private/Language/locallang.xlf:form_new_wizard_description',
|
||||
'FILE:EXT:form/Configuration/FlexForms/FormFramework.xml',
|
||||
);
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['types'][$contentTypeName]['previewRenderer'] = \TYPO3\CMS\Form\Preview\FormPagePreviewRenderer::class;
|
||||
});
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'form.db:form_definition',
|
||||
'label' => 'label',
|
||||
'crdate' => 'crdate',
|
||||
'tstamp' => 'tstamp',
|
||||
'versioningWS' => false,
|
||||
'default_sortby' => 'label',
|
||||
'delete' => 'deleted',
|
||||
'rootLevel' => 1,
|
||||
'security' => [
|
||||
'ignoreRootLevelRestriction' => true,
|
||||
],
|
||||
'typeicon_classes' => [
|
||||
'default' => 'content-form',
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => '
|
||||
--div--;core.form.tabs:general, label, identifier, configuration,
|
||||
',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'label' => [
|
||||
'label' => 'form.db:form_definition.label',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 50,
|
||||
'eval' => 'trim',
|
||||
'readOnly' => true,
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
'identifier' => [
|
||||
'label' => 'form.db:form_definition.identifier',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 50,
|
||||
'eval' => 'trim,unique',
|
||||
'readOnly' => true,
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
'configuration' => [
|
||||
'label' => 'form.db:form_definition.configuration',
|
||||
'config' => [
|
||||
'type' => 'json',
|
||||
'readOnly' => true,
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user