Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!!!][FEATURE] Auto-registration of NewContentElementWizard via TCA #292

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading