Skip to content

Commit

Permalink
[TASK] Move Page TypoScript Config into own file
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed Nov 20, 2024
1 parent cc8a1f5 commit a3fad62
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
14 changes: 14 additions & 0 deletions Configuration/page.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
mod.wizards.newContentElement.wizardItems.plugins {
elements {
odsosm {
iconIdentifier = ods_osm
title = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_title
description = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_plus_wiz_description
tt_content_defValues {
CType = list
list_type = ods_osm_pi1
}
}
}
show := addToList(odsosm)
}
14 changes: 1 addition & 13 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,7 @@
1
);

ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.plugins.elements.odsosm {
iconIdentifier = ods_osm
title = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_title
description = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_plus_wiz_description
tt_content_defValues {
CType = list
list_type = ods_osm_pi1
}
}
mod.wizards.newContentElement.wizardItems.plugins.show := addToList(odsosm)
');
ExtensionManagementUtility::addPageTSConfig('@import \'EXT:ods_osm/Configuration/page.tsconfig\'');

ExtensionManagementUtility::addUserTSConfig('
options.saveDocNew.tx_odsosm_track=1
Expand Down

0 comments on commit a3fad62

Please sign in to comment.