Skip to content

Commit

Permalink
[!!!][FEATURE] Auto-registration of NewContentElementWizard via TCA
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Sep 7, 2024
1 parent fa17c59 commit 153d7a3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 123 deletions.
24 changes: 24 additions & 0 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@
'Examples',
'Error',
'LLL:EXT:examples/Resources/Private/Language/locallang_db.xlf:tt_content.list_type_pierror',
null,
'plugin',
'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:pierror_wizard_description'
);
// Register the FAL example plugin
ExtensionUtility::registerPlugin(
Expand Down Expand Up @@ -198,6 +201,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_newcontentcsv_title',
'value' => 'examples_newcontentcsv',
'icon' => 'mimetypes-x-content-table',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_newcontentcsv_description',
],
);

Expand Down Expand Up @@ -227,6 +232,7 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_newcontentelement_title',
'value' => 'examples_newcontentelement',
'icon' => 'content-text',
'group' => 'default',
],
'textmedia',
'after',
Expand Down Expand Up @@ -260,6 +266,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocdb_title',
'value' => 'examples_dataprocdb',
'icon' => 'mimetypes-x-content-table',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocdb_description',
],
);

Expand All @@ -280,6 +288,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocmenu_title',
'value' => 'examples_dataprocmenu',
'icon' => 'content-special-uploads',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocmenu_description',
],
);

Expand All @@ -299,6 +309,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataproclang_title',
'value' => 'examples_dataproclang',
'icon' => 'install-manage-language',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataproclang_description',
],
);

Expand All @@ -317,6 +329,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsite_title',
'value' => 'examples_dataprocsite',
'icon' => 'apps-pagetree-folder-root',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsite_description',
],
);

Expand All @@ -336,6 +350,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsitelanguage_title',
'value' => 'examples_dataprocsitelanguage',
'icon' => 'content-message',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsitelanguage_description',
],
);

Expand All @@ -355,6 +371,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsplit_title',
'value' => 'examples_dataprocsplit',
'icon' => 'content-timeline',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsplit_description',
],
);

Expand All @@ -373,6 +391,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocfiles_title',
'value' => 'examples_dataprocfiles',
'icon' => 'content-image',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocfiles_description',
],
);

Expand All @@ -393,6 +413,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocgallery_title',
'value' => 'examples_dataprocgallery',
'icon' => 'content-dashboard',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocgallery_description',
],
);

Expand All @@ -414,6 +436,8 @@
'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataproccustom_title',
'value' => 'examples_dataproccustom',
'icon' => 'content-dashboard',
'group' => 'dataProcessingExamples',
'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataproccustom_description',
],
);

Expand Down
107 changes: 0 additions & 107 deletions Configuration/TsConfig/Page/ContentElementWizard.tsconfig
Original file line number Diff line number Diff line change
@@ -1,110 +1,3 @@
mod.wizards.newContentElement.wizardItems.plugins {
elements {
examples {
iconIdentifier = tx_examples-error-plugin
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:pierror_wizard_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:pierror_wizard_description
tt_content_defValues {
CType = list
list_type = examples_error
}
}
}
}

mod.wizards.newContentElement.wizardItems {
dataProcessingExamples.header = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:dataProcessingExamples
dataProcessingExamples.elements {
examples_newcontentcsv {
iconIdentifier = mimetypes-x-content-table
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_newcontentcsv_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_newcontentcsv_description
tt_content_defValues {
CType = examples_newcontentcsv
}
}

examples_dataprocdb {
iconIdentifier = content-special-uploads
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocdb_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocdb_description
tt_content_defValues {
CType = examples_dataprocdb
}
}

examples_dataproclang {
iconIdentifier = install-manage-language
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataproclang_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataproclang_description
tt_content_defValues {
CType = examples_dataproclang
}
}

examples_dataprocmenu {
iconIdentifier = content-menu-pages
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocmenu_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocmenu_description
tt_content_defValues {
CType = examples_dataprocmenu
}
}

examples_dataprocsite {
iconIdentifier = apps-pagetree-folder-root
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsite_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsite_description
tt_content_defValues {
CType = examples_dataprocsite
}
}

examples_dataprocsitelanguage {
iconIdentifier = content-message
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsitelanguage_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsitelanguage_description
tt_content_defValues {
CType = examples_dataprocsitelanguage
}
}

examples_dataprocsplit {
iconIdentifier = content-timeline
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsplit_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocsplit_description
tt_content_defValues {
CType = examples_dataprocsplit
}
}

examples_dataprocfiles {
iconIdentifier = content-image
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocfiles_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocfiles_description
tt_content_defValues {
CType = examples_dataprocfiles
}
}

examples_dataprocgallery {
iconIdentifier = content-dashboard
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocgallery_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocgallery_description
tt_content_defValues {
CType = examples_dataprocgallery
}
}

examples_dataproccustom {
iconIdentifier = content-dashboard
title = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataproccustom_title
description = LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataproccustom_description
tt_content_defValues {
CType = examples_dataproccustom
}
}
}

dataProcessingExamples.show = examples_newcontentcsv,examples_dataprocdb,examples_dataproclang, examples_dataprocmenu, examples_dataprocsite, examples_dataprocsitelanguage, examples_dataprocsplit, examples_dataprocfiles,examples_dataprocgallery,examples_dataproccustom
}
16 changes: 0 additions & 16 deletions Configuration/TsConfig/Page/CustomContentElements.tsconfig

This file was deleted.

0 comments on commit 153d7a3

Please sign in to comment.