diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf new file mode 100644 index 0000000..155c347 --- /dev/null +++ b/Resources/Private/Language/de.locallang.xlf @@ -0,0 +1,22 @@ + + + +
+ LFEditor +
+ + + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index 68e365b..bb353e3 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -1,10 +1,21 @@ - -
+ +
+ LFEditor +
+ + + + + + + + + - Dummy +
diff --git a/Resources/Private/PageTSConfig/default.tsconfig b/Resources/Private/PageTSConfig/default.tsconfig new file mode 100644 index 0000000..ffb5fbd --- /dev/null +++ b/Resources/Private/PageTSConfig/default.tsconfig @@ -0,0 +1 @@ + diff --git a/Resources/Private/PageTSConfig/lib/layout.tsconfig b/Resources/Private/PageTSConfig/lib/layout.tsconfig new file mode 100644 index 0000000..7102f7a --- /dev/null +++ b/Resources/Private/PageTSConfig/lib/layout.tsconfig @@ -0,0 +1,29 @@ +mod { + web_layout { + BackendLayouts { + default { + title = LLL:EXT:templates_aide/Resources/Private/Language/locallang.xlf:default + config { + backend_layout { + colCount = 1 + rowCount = 1 + rows { + 1 { + columns { + 1 { + name = LLL:EXT:templates_aide/Resources/Private/Language/locallang.xlf:default + colPos = 0 + } + } + } + } + } + } + } + homepage < .default + homepage.title = LLL:EXT:templates_aide/Resources/Private/Language/locallang.xlf:homepage + subpage < .default + subpage.title = LLL:EXT:templates_aide/Resources/Private/Language/locallang.xlf:subpage + } + } +} diff --git a/Resources/Private/TypoScript/Setup/lib.ts b/Resources/Private/TypoScript/Setup/lib.ts index 37b61ac..b2c2cde 100644 --- a/Resources/Private/TypoScript/Setup/lib.ts +++ b/Resources/Private/TypoScript/Setup/lib.ts @@ -1,18 +1,25 @@ +# legacy + lib.rootpid = TEXT lib.rootpid.data = leveluid : 0 -lib.pidRoot = TEXT -lib.pidRoot.data = leveluid : 0 - lib.currentLevel = TEXT lib.currentLevel.data = level:1 lib.currentPid = TEXT lib.currentPid.data = TSFE:id +# legacy end + +lib.pidRoot = TEXT +lib.pidRoot.data = leveluid : 0 + lib.pidCurrent = TEXT lib.pidCurrent.data = TSFE:id +lib.level = TEXT +lib.level.data = level:1 + lib.gpvar = COA lib.gpvar { stdWrap.htmlSpecialChars = 1 diff --git a/Resources/Private/TypoScript/Setup/page.ts b/Resources/Private/TypoScript/Setup/page.ts index 8535635..618b6d1 100644 --- a/Resources/Private/TypoScript/Setup/page.ts +++ b/Resources/Private/TypoScript/Setup/page.ts @@ -2,7 +2,19 @@ page = PAGE page { 10 = FLUIDTEMPLATE 10 { - templateName = Base + templateName.stdWrap { + cObject = TEXT + cObject { + data = levelfield:-2,backend_layout_next_level,slide + override.field = backend_layout + split { + token = pagets__ + 1.current = 1 + 1.wrap = | + } + } + ifEmpty = Base + } layoutRootPaths { 0 = EXT:site_templates/Resources/Private/Layouts } diff --git a/ext_localconf.php b/ext_localconf.php index 252d822..fd18f63 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -56,4 +56,4 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1549297828] = [ $GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['c'] = []; $GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['c'][] - = 'Cjel\TemplatesAide\ViewHelpers'; \ No newline at end of file + = 'Cjel\TemplatesAide\ViewHelpers'; diff --git a/ext_tables.php b/ext_tables.php index 045a13f..2106264 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -37,6 +37,12 @@ call_user_func( 'EXT:templates_aide/Resources/Public/Css/backend/production-stage'; } + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile( + 'templates_aide', + 'Resources/Private/PageTSConfig/default.tsconfig', + 'Default Config' + ); + if (TYPO3_MODE == 'BE') { //$pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( // \TYPO3\CMS\Core\Page\PageRenderer::class