From 038fd6368436114eefb4ff4b5b0caa930c124d6c Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Mon, 17 Feb 2020 23:42:48 +0100 Subject: [PATCH] [TASK] Add more default typoscript --- Resources/Private/TypoScript/Setup/config.ts | 3 +++ Resources/Private/TypoScript/Setup/dev.ts | 4 ++++ Resources/Private/TypoScript/Setup/lib.ts | 3 +++ Resources/Private/TypoScript/Setup/page.ts | 25 ++++++++++++++++++++ Resources/Private/TypoScript/setup.ts | 5 ++++ 5 files changed, 40 insertions(+) create mode 100644 Resources/Private/TypoScript/Setup/config.ts create mode 100644 Resources/Private/TypoScript/Setup/dev.ts create mode 100644 Resources/Private/TypoScript/Setup/page.ts diff --git a/Resources/Private/TypoScript/Setup/config.ts b/Resources/Private/TypoScript/Setup/config.ts new file mode 100644 index 0000000..ba0f7ed --- /dev/null +++ b/Resources/Private/TypoScript/Setup/config.ts @@ -0,0 +1,3 @@ +config { + absRefPrefix = / +} diff --git a/Resources/Private/TypoScript/Setup/dev.ts b/Resources/Private/TypoScript/Setup/dev.ts new file mode 100644 index 0000000..8064b4f --- /dev/null +++ b/Resources/Private/TypoScript/Setup/dev.ts @@ -0,0 +1,4 @@ +config { + cache_period = 0 + no_cache = 1 +} diff --git a/Resources/Private/TypoScript/Setup/lib.ts b/Resources/Private/TypoScript/Setup/lib.ts index 02e2bb3..37b61ac 100644 --- a/Resources/Private/TypoScript/Setup/lib.ts +++ b/Resources/Private/TypoScript/Setup/lib.ts @@ -23,3 +23,6 @@ lib.gpvar { wrap3 = {|} } } + +lib.contentMain < styles.content.get +lib.contentMain.select.where = colPos = 0 diff --git a/Resources/Private/TypoScript/Setup/page.ts b/Resources/Private/TypoScript/Setup/page.ts new file mode 100644 index 0000000..917009b --- /dev/null +++ b/Resources/Private/TypoScript/Setup/page.ts @@ -0,0 +1,25 @@ +page = PAGE +page { + 10 = FLUIDTEMPLATE + 10 { + templateName = Base + layoutRootPaths { + 0 = EXT:site_templates/Resources/Private/Layouts + } + templateRootPaths { + 0 = EXT:site_templates/Resources/Private/Templates + } + partialRootPaths { + 0 = EXT:site_templates/Resources/Private/Partials + } + } + includeJSFooter { + file01 = {$asset.js.site} + file01.external = 1 + file01.forceOnTop = 1 + } + includeCSS { + file01 = {$asset.css.site} + file01.external = 1 + } +} diff --git a/Resources/Private/TypoScript/setup.ts b/Resources/Private/TypoScript/setup.ts index dfed507..914558c 100644 --- a/Resources/Private/TypoScript/setup.ts +++ b/Resources/Private/TypoScript/setup.ts @@ -1 +1,6 @@ + + +[applicationContext = Development] + +[end]