diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/default.tsconfig.twig b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/default.tsconfig.twig
index a7300948..092e7db6 100644
--- a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/default.tsconfig.twig
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/default.tsconfig.twig
@@ -12,6 +12,16 @@ mod {
rowCount = 1
rows {
1 {
+ columns {
+ 1 {
+ name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.stage
+ colPos = 1
+ identifier = stage
+ slideMode = slide
+ }
+ }
+ }
+ 2 {
columns {
1 {
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.normal
@@ -23,7 +33,7 @@ mod {
}
}
}
- icon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/BackendLayouts/example.svg
+ icon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/BackendLayouts/default.svg
}
}
}
diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/example.tsconfig.twig b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/subpage.tsconfig.twig
similarity index 85%
rename from resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/example.tsconfig.twig
rename to resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/subpage.tsconfig.twig
index ef3256af..16c461bc 100644
--- a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/example.tsconfig.twig
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/subpage.tsconfig.twig
@@ -4,8 +4,8 @@
mod {
web_layout {
BackendLayouts {
- example {
- title = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.example
+ Subpage {
+ title = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.subpage
config {
backend_layout {
colCount = 2
@@ -15,9 +15,10 @@ mod {
columns {
1 {
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.stage
- colPos = 0
- identifier = stage
+ colPos = 1
colspan = 2
+ identifier = stage
+ slideMode = slide
}
}
}
@@ -31,15 +32,15 @@ mod {
2 {
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.right
colPos = 2
- identifier = right
- slideMode = slide
+ identifier = sidebar
+ slideMode = collectReverse
}
}
}
}
}
}
- icon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/BackendLayouts/example.svg
+ icon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/BackendLayouts/subpage.svg
}
}
}
diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/breadcrumb.typoscript b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/breadcrumb.typoscript
new file mode 100644
index 00000000..ca963b5d
--- /dev/null
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/breadcrumb.typoscript
@@ -0,0 +1,12 @@
+page {
+ 10 {
+ dataProcessing {
+ 30 = menu
+ 30 {
+ special = rootline
+ special.range = 0|-1
+ as = breadcrumb
+ }
+ }
+ }
+}
diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/menu.typoscript b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/menu.typoscript
new file mode 100644
index 00000000..2355f8f4
--- /dev/null
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/menu.typoscript
@@ -0,0 +1,7 @@
+page {
+ 10 {
+ dataProcessing {
+ 20 = menu
+ }
+ }
+}
diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/configuration.typoscript b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/configuration.typoscript
new file mode 100644
index 00000000..0fdf274a
--- /dev/null
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/configuration.typoscript
@@ -0,0 +1,9 @@
+// Part 4: global site configuration
+config {
+ # Adjust the title tag to be displayed as “website - page title”
+ pageTitleSeparator = -
+ pageTitleSeparator.noTrimWrap = | | |
+
+ # Display the Admin Panel at the bottom of pages to logged in backend users
+ admPanel = 1
+}
diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/page.typoscript.twig b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/page.typoscript.twig
new file mode 100644
index 00000000..f2456775
--- /dev/null
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/page.typoscript.twig
@@ -0,0 +1,16 @@
+page = PAGE
+page {
+ 10 = PAGEVIEW
+ 10 {
+ paths {
+ 0 = EXT:{{ package.extensionKey }}/Resources/Private/PageView/
+ 10 = {${{ package.packageName }}.template_path}
+ }
+
+ dataProcessing {
+ # makes content elements available as {content} in Fluid template
+ 10 = page-content
+ }
+ }
+ shortcutIcon = {${{ package.packageName }}.favicon}
+}
diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.definitions.yaml.twig b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.definitions.yaml.twig
new file mode 100644
index 00000000..38e0b12b
--- /dev/null
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.definitions.yaml.twig
@@ -0,0 +1,38 @@
+categories:
+ {{ package.packageName }}:
+ label: '{{ package.title }}'
+ {{ package.packageName }}.templates:
+ label: 'Templates'
+ parent: {{ package.packageName }}
+ {{ package.packageName }}.layout:
+ label: 'Layout'
+ parent: {{ package.packageName }}
+
+settings:
+ {{ package.packageName }}.template_path:
+ label: 'Page template path'
+ category: {{ package.packageName }}.templates
+ description: 'Path to the templates of the {{ package.title }}.'
+ type: string
+ default: 'EXT:{{ package.extensionKey }}/Resources/Private/Templates/'
+
+ {{ package.packageName }}.logo:
+ label: 'Logo'
+ category: {{ package.packageName }}.layout
+ description: 'Path to the logo of {{ package.title }}.'
+ type: string
+ default: 'EXT:{{ package.extensionKey }}/Resources/Public/Images/logo.svg'
+
+ {{ package.packageName }}.logo-alt:
+ label: 'Logo Alt text'
+ category: {{ package.packageName }}.layout
+ description: 'Alternative text of the logo for the visually impaired'
+ type: string
+ default: 'Logo'
+
+ {{ package.packageName }}.favicon:
+ label: 'Favicon'
+ description: 'This icon is displayed in search engine results and in the browser tab'
+ category: {{ package.packageName }}.layout
+ type: string
+ default: 'EXT:{{ package.extensionKey }}/Resources/Public/Icons/favicon.ico'
diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.yaml.twig b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.yaml.twig
index 7862ca31..042dc5f9 100644
--- a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.yaml.twig
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.yaml.twig
@@ -1,28 +1,12 @@
styles:
- templates:
- layoutRootPath: 'EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Layouts/'
- partialRootPath: 'EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Partials/'
- templateRootPath: 'EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Templates/'
-
-page:
- pageview:
- paths: 'EXT:{{ package.extensionKey }}/Resources/Private/PageView/'
-
- meta:
- viewport: 'width=device-width, initial-scale=1'
- robots: 'index,follow'
- apple-mobile-web-app-capable: 'no'
- compatible: 'IE=edge'
-
- tracking:
- google:
- trackingID: ''
- anonymizeIp: '1'
-
-config:
- no_cache: '0'
- removeDefaultJS: '0'
- admPanel: '1'
- prefixLocalAnchors: 'all'
- headerComment: 'build by sitepackagebuilder.com'
- sendCacheHeaders: '1'
+ templates:
+ layoutRootPath: EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Layouts
+ partialRootPath: EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Partials
+ templateRootPath: EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Templates
+ content:
+ textmedia:
+ maxW: 1200
+ maxWInText: 600
+ linkWrap:
+ lightboxEnabled: true
+ lightboxCssClass: lightbox
diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/setup.typoscript.twig b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/setup.typoscript.twig
index af881eb5..5509a99f 100644
--- a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/setup.typoscript.twig
+++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/setup.typoscript.twig
@@ -1,102 +1,2 @@
-##############
-#### PAGE ####
-##############
-page = PAGE
-page {
- typeNum = 0
- shortcutIcon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/favicon.ico
-
- 10 = PAGEVIEW
- 10 {
- paths {
- 0 = EXT:{{ package.extensionKey }}/Resources/Private/PageView/
- 1 = {$page.pageview.paths}
- }
- dataProcessing {
- 10 = files
- 10 {
- references.fieldName = media
- }
- 20 = menu
- 20 {
- levels = 2
- includeSpacer = 1
- as = mainnavigation
- }
- 30 = page-content
- }
- }
-
- meta {
- viewport = {$page.meta.viewport}
- robots = {$page.meta.robots}
- apple-mobile-web-app-capable = {$page.meta.apple-mobile-web-app-capable}
-
- X-UA-Compatible = {$page.meta.compatible}
- X-UA-Compatible {
- attribute = http-equiv
- }
- }
-
- includeCSSLibs {
-
- }
-
- includeCSS {
- {{ package.extensionKey }}_layout = EXT:{{ package.extensionKey }}/Resources/Public/Css/layout.css
- }
-
- includeJSLibs {
-
- }
-
- includeJS {
-
- }
-
- includeJSFooterlibs {
-
- }
-
- includeJSFooter {
- {{ package.extensionKey }}_scripts = EXT:{{ package.extensionKey }}/Resources/Public/JavaScript/main.js
- }
-}
-
-
-################
-#### CONFIG ####
-################
-config {
- absRefPrefix = auto
- no_cache = {$config.no_cache}
- uniqueLinkVars = 1
- pageTitleFirst = 1
- linkVars = L
- prefixLocalAnchors = {$config.prefixLocalAnchors}
- renderCharset = utf-8
- metaCharset = utf-8
- doctype = html5
- removeDefaultJS = {$config.removeDefaultJS}
- inlineStyle2TempFile = 1
- admPanel = {$config.admPanel}
- debug = 0
- cache_period = 86400
- sendCacheHeaders = {$config.sendCacheHeaders}
- intTarget =
- extTarget =
- disablePrefixComment = 1
- index_enable = 1
- index_externals = 1
- index_metatags = 1
- headerComment = {$config.headerComment}
-
- // Disable Image Upscaling
- noScaleUp = 1
-
- // Compression and Concatenation of CSS and JS Files
- compressJs = 0
- compressCss = 0
- concatenateJs = 0
- concatenateCss = 0
-}
+@import './TypoScript/*.typoscript'
+@import './TypoScript/Navigation/*.typoscript'
diff --git a/resources/packages/site_package_tutorial/13.4/src/Initialisation/Site/main/config.yaml.twig b/resources/packages/site_package_tutorial/13.4/src/Initialisation/Site/main/config.yaml.twig
index 237a99bd..199a6926 100644
--- a/resources/packages/site_package_tutorial/13.4/src/Initialisation/Site/main/config.yaml.twig
+++ b/resources/packages/site_package_tutorial/13.4/src/Initialisation/Site/main/config.yaml.twig
@@ -11,4 +11,4 @@ languages:
navigationTitle: English
flag: us
rootPageId: 1
-websiteTitle: 'Example site'
+websiteTitle: '{{ package.title }}'
diff --git a/resources/packages/site_package_tutorial/13.4/src/Resources/Private/Language/locallang_be.xlf.twig b/resources/packages/site_package_tutorial/13.4/src/Resources/Private/Language/locallang_be.xlf.twig
index 4f7dd7ce..542eb196 100644
--- a/resources/packages/site_package_tutorial/13.4/src/Resources/Private/Language/locallang_be.xlf.twig
+++ b/resources/packages/site_package_tutorial/13.4/src/Resources/Private/Language/locallang_be.xlf.twig
@@ -9,6 +9,9 @@
packages/{{ package.extensionKey }}/Resources/Private/PageView/Pages/Default.html
- packages/{{ package.extensionKey }}/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/default.tsconfig
- packages/{{ package.extensionKey }}/Resources/Private/PageView/Pages/Default.html
- packages/{{ package.extensionKey }}/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/default.tsconfig
-