diff --git a/Documentation/CodeSnippets/Fluid/TemplateDefault.rst.txt b/Documentation/CodeSnippets/Fluid/TemplateDefault.rst.txt
index ff1194f..ff7ff64 100644
--- a/Documentation/CodeSnippets/Fluid/TemplateDefault.rst.txt
+++ b/Documentation/CodeSnippets/Fluid/TemplateDefault.rst.txt
@@ -1,5 +1,5 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Resources/Private/Templates/Page/Default.html
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Resources/Private/Templates/Page/Default.html
.. code-block:: html
:caption: EXT:site_package/Resources/Private/Templates/Page/Default.html
@@ -7,11 +7,11 @@
-
+
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/Documentation/CodeSnippets/Fluid/TemplateTwoColumns.rst.txt b/Documentation/CodeSnippets/Fluid/TemplateTwoColumns.rst.txt
index 952ccb3..14e1cc8 100644
--- a/Documentation/CodeSnippets/Fluid/TemplateTwoColumns.rst.txt
+++ b/Documentation/CodeSnippets/Fluid/TemplateTwoColumns.rst.txt
@@ -1,5 +1,5 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Resources/Private/Templates/Page/TwoColumns.html
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Resources/Private/Templates/Page/TwoColumns.html
.. code-block:: html
:caption: EXT:site_package/Resources/Private/Templates/Page/TwoColumns.html
@@ -7,10 +7,10 @@
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/Documentation/CodeSnippets/TypoScript/Constants.rst.txt b/Documentation/CodeSnippets/TypoScript/Constants.rst.txt
index 59035a7..45a79e7 100644
--- a/Documentation/CodeSnippets/TypoScript/Constants.rst.txt
+++ b/Documentation/CodeSnippets/TypoScript/Constants.rst.txt
@@ -1,12 +1,10 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Configuration/TypoScript/constants.typoscript
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Configuration/Sets/SitePackage/constants.typoscript
.. code-block:: typoscript
- :caption: EXT:site_package/Configuration/TypoScript/constants.typoscript
+ :caption: EXT:site_package/Configuration/Sets/SitePackage/constants.typoscript
:linenos:
- @import 'EXT:fluid_styled_content/Configuration/TypoScript/constants.typoscript'
-
page {
fluidtemplate {
layoutRootPath = EXT:site_package/Resources/Private/Layouts/Page/
diff --git a/Documentation/CodeSnippets/TypoScript/Page.rst.txt b/Documentation/CodeSnippets/TypoScript/Page.rst.txt
index 8941380..d3049a5 100644
--- a/Documentation/CodeSnippets/TypoScript/Page.rst.txt
+++ b/Documentation/CodeSnippets/TypoScript/Page.rst.txt
@@ -1,5 +1,5 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Configuration/TypoScript/Setup/Page.typoscript
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Configuration/TypoScript/Setup/Page.typoscript
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/Setup/Page.typoscript
diff --git a/Documentation/CodeSnippets/TypoScript/Part1FluidTemplateSection.rst.txt b/Documentation/CodeSnippets/TypoScript/Part1FluidTemplateSection.rst.txt
index a2f73f9..b89763f 100644
--- a/Documentation/CodeSnippets/TypoScript/Part1FluidTemplateSection.rst.txt
+++ b/Documentation/CodeSnippets/TypoScript/Part1FluidTemplateSection.rst.txt
@@ -1,5 +1,5 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part1FluidTemplateSection.typoscript
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Configuration/TypoScript/Setup/Part1FluidTemplateSection.typoscript
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/Setup/Part1FluidTemplateSection.typoscript
@@ -21,20 +21,20 @@
1.current = 1
}
}
-
+
ifEmpty = Default
}
-
+
templateRootPaths {
0 = EXT:site_package/Resources/Private/Templates/Page/
1 = {$page.fluidtemplate.templateRootPath}
}
-
+
partialRootPaths {
0 = EXT:site_package/Resources/Private/Partials/Page/
1 = {$page.fluidtemplate.partialRootPath}
}
-
+
layoutRootPaths {
0 = EXT:site_package/Resources/Private/Layouts/Page/
1 = {$page.fluidtemplate.layoutRootPath}
diff --git a/Documentation/CodeSnippets/TypoScript/Part2CssFileInclusion.rst.txt b/Documentation/CodeSnippets/TypoScript/Part2CssFileInclusion.rst.txt
index aa10117..220a11b 100644
--- a/Documentation/CodeSnippets/TypoScript/Part2CssFileInclusion.rst.txt
+++ b/Documentation/CodeSnippets/TypoScript/Part2CssFileInclusion.rst.txt
@@ -1,11 +1,10 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part2CssFileInclusion.typoscript
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Configuration/TypoScript/Setup/Part2CssFileInclusion.typoscript
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/Setup/Part2CssFileInclusion.typoscript
:linenos:
-
page {
// Part 2: CSS file inclusion
includeCSS {
@@ -13,7 +12,7 @@
bootstrap.external = 1
website = EXT:site_package/Resources/Public/Css/website.css
}
-
+
// Part 3: JavaScript file inclusion
includeJSFooter {
jquery = https://code.jquery.com/jquery-3.2.1.slim.min.js
diff --git a/Documentation/CodeSnippets/TypoScript/Part4GlobalConfiguration.rst.txt b/Documentation/CodeSnippets/TypoScript/Part4GlobalConfiguration.rst.txt
index cf17f10..27f0099 100644
--- a/Documentation/CodeSnippets/TypoScript/Part4GlobalConfiguration.rst.txt
+++ b/Documentation/CodeSnippets/TypoScript/Part4GlobalConfiguration.rst.txt
@@ -1,5 +1,5 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part4GlobalConfiguration.typoscript
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Configuration/TypoScript/Setup/Part4GlobalConfiguration.typoscript
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/Setup/Part4GlobalConfiguration.typoscript
@@ -10,7 +10,7 @@
# 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/Documentation/CodeSnippets/TypoScript/Part5MenuProcessor.rst.txt b/Documentation/CodeSnippets/TypoScript/Part5MenuProcessor.rst.txt
index ff06309..cbcbf5c 100644
--- a/Documentation/CodeSnippets/TypoScript/Part5MenuProcessor.rst.txt
+++ b/Documentation/CodeSnippets/TypoScript/Part5MenuProcessor.rst.txt
@@ -1,5 +1,5 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part5MenuProcessor.typoscript
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Configuration/TypoScript/Setup/Part5MenuProcessor.typoscript
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/Setup/Part5MenuProcessor.typoscript
@@ -17,7 +17,7 @@
layoutRootPaths {
// ...
}
-
+
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 {
diff --git a/Documentation/CodeSnippets/TypoScript/Part6ProcessedContent.rst.txt b/Documentation/CodeSnippets/TypoScript/Part6ProcessedContent.rst.txt
index 626cbc0..4318aed 100644
--- a/Documentation/CodeSnippets/TypoScript/Part6ProcessedContent.rst.txt
+++ b/Documentation/CodeSnippets/TypoScript/Part6ProcessedContent.rst.txt
@@ -1,11 +1,10 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part6ProcessedContent.typoscript
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Configuration/TypoScript/Setup/Part6ProcessedContent.typoscript
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/Setup/Part6ProcessedContent.typoscript
:linenos:
-
page {
10 {
dataProcessing {
diff --git a/Documentation/CodeSnippets/TypoScript/Setup.rst.txt b/Documentation/CodeSnippets/TypoScript/Setup.rst.txt
index 5c04e8f..3f1ab3c 100644
--- a/Documentation/CodeSnippets/TypoScript/Setup.rst.txt
+++ b/Documentation/CodeSnippets/TypoScript/Setup.rst.txt
@@ -1,12 +1,9 @@
-.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
-.. Extracted from typo3conf/ext/site_package/Configuration/TypoScript/setup.typoscript
+.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
+.. Extracted from EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript
.. code-block:: typoscript
- :caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
+ :caption: EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript
:linenos:
- @import 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript'
@import 'EXT:site_package/Configuration/TypoScript/Setup/*.typoscript'
-
-
\ No newline at end of file
diff --git a/Documentation/CodeSnippets/codesnippets.php b/Documentation/CodeSnippets/codesnippets.php
index 5f56036..649dbbb 100644
--- a/Documentation/CodeSnippets/codesnippets.php
+++ b/Documentation/CodeSnippets/codesnippets.php
@@ -6,56 +6,56 @@
# code Snippets Setup
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TypoScript/constants.typoscript',
+ 'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/constants.typoscript',
'targetFileName' => 'TypoScript/Constants.rst.txt',
- 'caption' => 'EXT:site_package/Configuration/TypoScript/constants.typoscript',
+ 'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/constants.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TypoScript/setup.typoscript',
+ 'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript',
'targetFileName' => 'TypoScript/Setup.rst.txt',
- 'caption' => 'EXT:site_package/Configuration/TypoScript/setup.typoscript',
+ 'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TypoScript/Setup/Page.typoscript',
+ 'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Setup/Page.typoscript',
'targetFileName' => 'TypoScript/Page.rst.txt',
'caption' => 'EXT:site_package/Configuration/TypoScript/Setup/Page.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part1FluidTemplateSection.typoscript',
+ 'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Setup/Part1FluidTemplateSection.typoscript',
'targetFileName' => 'TypoScript/Part1FluidTemplateSection.rst.txt',
'caption' => 'EXT:site_package/Configuration/TypoScript/Setup/Part1FluidTemplateSection.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part2CssFileInclusion.typoscript',
+ 'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Setup/Part2CssFileInclusion.typoscript',
'targetFileName' => 'TypoScript/Part2CssFileInclusion.rst.txt',
'caption' => 'EXT:site_package/Configuration/TypoScript/Setup/Part2CssFileInclusion.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part4GlobalConfiguration.typoscript',
+ 'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Setup/Part4GlobalConfiguration.typoscript',
'targetFileName' => 'TypoScript/Part4GlobalConfiguration.rst.txt',
'caption' => 'EXT:site_package/Configuration/TypoScript/Setup/Part4GlobalConfiguration.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part5MenuProcessor.typoscript',
+ 'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Setup/Part5MenuProcessor.typoscript',
'targetFileName' => 'TypoScript/Part5MenuProcessor.rst.txt',
'caption' => 'EXT:site_package/Configuration/TypoScript/Setup/Part5MenuProcessor.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TypoScript/Setup/Part6ProcessedContent.typoscript',
+ 'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Setup/Part6ProcessedContent.typoscript',
'targetFileName' => 'TypoScript/Part6ProcessedContent.rst.txt',
'caption' => 'EXT:site_package/Configuration/TypoScript/Setup/Part6ProcessedContent.typoscript',
'showLineNumbers' => true
@@ -64,74 +64,91 @@
#code Snippets Extension Configuration
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/composer.json',
+ 'sourceFile' => 'EXT:site_package/composer.json',
'targetFileName' => 'ExtensionConfiguration/ComposerJson.rst.txt',
'caption' => 'EXT:site_package/composer.json',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TCA/Overrides/pages.php',
- 'targetFileName' => 'ExtensionConfiguration/TcaOverridePages.rst.txt',
- 'caption' => 'EXT:site_package/Configuration/TCA/Overrides/pages.php',
+ 'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/config.yaml',
+ 'targetFileName' => 'ExtensionConfiguration/SitePackage-config.rst.txt',
+ 'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/config.yaml',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Configuration/TCA/Overrides/sys_template.php',
- 'targetFileName' => 'ExtensionConfiguration/TcaOverrideSysTemplate.rst.txt',
- 'caption' => 'EXT:site_package/Configuration/TCA/Overrides/sys_template.php',
+ 'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/settings.yaml',
+ 'targetFileName' => 'ExtensionConfiguration/SitePackage-settings.rst.txt',
+ 'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/settings.yaml',
'showLineNumbers' => true
],
+ [
+ 'action' => 'createCodeSnippet',
+ 'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript',
+ 'targetFileName' => 'ExtensionConfiguration/SitePackage-setup.rst.txt',
+ 'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript',
+ ],
+ [
+ 'action' => 'createCodeSnippet',
+ 'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/constants.typoscript',
+ 'targetFileName' => 'ExtensionConfiguration/SitePackage-constants.rst.txt',
+ 'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/constants.typoscript',
+ ],
+ [
+ 'action' => 'createCodeSnippet',
+ 'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/page.tsconfig',
+ 'targetFileName' => 'ExtensionConfiguration/SitePackage-page-tsconfig.rst.txt',
+ 'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/page.tsconfig',
+ 'language' => 'typoscript',
+ ],
# code Snippets Fluid
-
-
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Resources/Public/StaticTemplate/Step1Default.html',
+ 'sourceFile' => 'EXT:site_package/Resources/Public/StaticTemplate/Step1Default.html',
'targetFileName' => 'Fluid/Step1Default.rst.txt',
'caption' => 'EXT:site_package/Resources/Public/StaticTemplate/Step1Default.html',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Resources/Public/StaticTemplate/Step2Default.html',
+ 'sourceFile' => 'EXT:site_package/Resources/Public/StaticTemplate/Step2Default.html',
'targetFileName' => 'Fluid/Step2Default.rst.txt',
'caption' => 'EXT:site_package/Resources/Public/StaticTemplate/Step2Default.html',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Resources/Public/StaticTemplate/Step3Default.html',
+ 'sourceFile' => 'EXT:site_package/Resources/Public/StaticTemplate/Step3Default.html',
'targetFileName' => 'Fluid/Step3Default.rst.txt',
'caption' => 'EXT:site_package/Resources/Public/StaticTemplate/Step3Default.html',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Resources/Private/Templates/Page/Default.html',
+ 'sourceFile' => 'EXT:site_package/Resources/Private/Templates/Page/Default.html',
'targetFileName' => 'Fluid/TemplateDefault.rst.txt',
'caption' => 'EXT:site_package/Resources/Private/Templates/Page/Default.html',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Resources/Private/Templates/Page/TwoColumns.html',
+ 'sourceFile' => 'EXT:site_package/Resources/Private/Templates/Page/TwoColumns.html',
'targetFileName' => 'Fluid/TemplateTwoColumns.rst.txt',
'caption' => 'EXT:site_package/Resources/Private/Templates/Page/TwoColumns.html',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Resources/Private/Partials/Page/Jumbotron.html',
+ 'sourceFile' => 'EXT:site_package/Resources/Private/Partials/Page/Jumbotron.html',
'targetFileName' => 'Fluid/PartialJumbotron.rst.txt',
'caption' => 'EXT:site_package/Resources/Private/Partials/Page/Jumbotron.html',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
- 'sourceFile' => 'typo3conf/ext/site_package/Resources/Private/Layouts/Page/Default.html',
+ 'sourceFile' => 'EXT:site_package/Resources/Private/Layouts/Page/Default.html',
'targetFileName' => 'Fluid/Layout.rst.txt',
'caption' => 'EXT:site_package/Resources/Private/Layouts/Page/Default.html',
'showLineNumbers' => true
diff --git a/Documentation/ContentMapping/Index.rst b/Documentation/ContentMapping/Index.rst
index c20dffd..a080c7b 100644
--- a/Documentation/ContentMapping/Index.rst
+++ b/Documentation/ContentMapping/Index.rst
@@ -55,12 +55,18 @@ This syntax imports all files ending on `.tsconfig` from the specified folder.
automatically loaded during build time. See
:ref:`t3tsconfig:setting-page-tsconfig` on how to load the file in older
TYPO3 versions.
-
-When there is only one site in your installation or all sites share the same
-configurations we suggest to include this file globally as decribed here.
-See :ref:`t3tsconfig:setting-page-tsconfig` on how to load the page TSconfig
+
+When there is only one site in your installation or all sites share the same
+configurations we suggest to include this file globally as decribed here.
+See :ref:`t3tsconfig:setting-page-tsconfig` on how to load the page TSconfig
for a certain page tree.
+
+.. _backend-page-layouts:
+
+Create the backend page layouts
+-------------------------------
+
Then create a file
:file:`Configuration/TsConfig/Page/PageLayout/Default.tsconfig` with the
following content:
diff --git a/Documentation/CreatePages/Index.rst b/Documentation/CreatePages/Index.rst
index 4db922e..14f7089 100644
--- a/Documentation/CreatePages/Index.rst
+++ b/Documentation/CreatePages/Index.rst
@@ -98,11 +98,6 @@ You should find the item "Site Package (site_package)" in the list
Now save your changes by clicking the :guilabel:`Save` button at the top.
-.. hint::
- The item "Site Package" was created by the file
- :file:`Configuration/TCA/Overrides/sys_template.php` in the step
- :ref:`Make TypoScript available
`.
-
Preview the page
================
diff --git a/Documentation/ExtensionConfiguration/Index.rst b/Documentation/ExtensionConfiguration/Index.rst
index c681ea0..49dec13 100644
--- a/Documentation/ExtensionConfiguration/Index.rst
+++ b/Documentation/ExtensionConfiguration/Index.rst
@@ -7,6 +7,9 @@
Extension Configuration
=======================
+
+.. _extension-configuration-composer:
+
Composer configuration :file:`composer.json`
============================================
@@ -42,19 +45,61 @@ Every extension can feature an icon using an SVG, PNG or GIF file.
The image should be stored in :file:`Resources/Public/Icons/`.
It is recommended that you use an SVG file called :file:`Extension.svg`.
-
.. _make-typoscript-available:
-Make TypoScript available
-=========================
+Set for providing TypoScript
+============================
+
+.. versionchanged:: 13.1
+ In TYPO3 v13.1 and above the TypoScript files are made available as
+ sets and included in the site. For TYPO3 v12 read the section in
+ the tutorial for TYPO3 v12.4:
+ :ref:`Make TypoScript available (TYPO3 v12.4) `.
+
+In order to make the TypoScript files available, we have created in section
+:ref:`TypoScript configuration ` we
+create a site set that can be included by the site configuration later-on.
+
+Create a folder: :path:`Configuration/Sets/MySitePackage/` and put a file
+called :file:`config.yaml` into it:
+
+.. include:: /CodeSnippets/ExtensionConfiguration/SitePackage-config.rst.txt
+
+Line 1 defines the name of the set. As the example site-package extension only
+provides one set, the name of the set should be the same as the
+:ref:`composer name `.
-In order to automatically load the TypoScript files we have created in the
-previous step, a new PHP file :file:`sys_template.php` needs to be created and
-stored in directory :file:`Configuration/TCA/Overrides/`. The content of this file
-should look like the following code:
+In line 4 and 5 dependencies are defined. In this example the site package
+depends on :t3src:`fluid_styled_content`, therefore the sets provided by this
+system extension are included as dependency. By doing so all settings
+and TypoScript definitions provided by the extension are automatically included.
-.. include:: /CodeSnippets/ExtensionConfiguration/TcaOverrideSysTemplate.rst.txt
+In the same folder we can place a file called :file:`settings.yaml` that we use
+to override some default settings of :t3src:`fluid_styled_content`:
+.. include:: /CodeSnippets/ExtensionConfiguration/SitePackage-settings.rst.txt
+
+Here we override some values for maximal image width in text-media content
+elements, we enable a lightbox for images and set paths for overriding the
+templates of that extension.
+
+Then we put a file called :file:`setup.typoscript` into this folder. We use
+this file to include all TypoScript needed from the folder
+:path:`Configuration/TypoScript`. It would also be possible to place the
+TypoScript directly into this file. But we want to split our TypoScript into
+different files.
+
+.. include:: /CodeSnippets/ExtensionConfiguration/SitePackage-setup.rst.txt
+
+As we only have a few lines of TypoScript constants we define them directly in
+a file called :file:`constants.typoscript` in this folder:
+
+.. include:: /CodeSnippets/ExtensionConfiguration/SitePackage-constants.rst.txt
+
+Last we add a file called :file:`page.tsconfig` which includes the backend page
+layouts we create in :ref:`backend-page-layouts`:
+
+.. include:: /CodeSnippets/ExtensionConfiguration/SitePackage-page-tsconfig.rst.txt
.. _ec-directory-structure:
@@ -70,60 +115,57 @@ it stands now.
* site_package/
- * Configuration/
+ * Configuration
- * TCA/
+ * Sets
- * Overrides/
+ * MySitePackage
- * sys_template.php
+ config.yaml
+ constants.typoscript
+ setup.typoscript
- * TypoScript/
+ * TypoScript
- * constants.typoscript
- * setup.typoscript
+ * Resources
- * Resources/
+ * Private
- * Private/
+ * Layouts
- * Layouts/
+ * Page
- * Page/
+ * Default.html
- * Default.html
+ * Partials
- * Partials/
+ * Page
- * Page/
+ * Jumbotron.html
- * Jumbotron.html
+ * Templates
- * Templates/
+ * Page
- * Page/
+ * Default.html
- * Default.html
- * Public/
+ * Public
- * Css/
+ * Css
- * website.css
+ * website.css
- * Icons
+ * Icons/Extension.svg
- * Extension.svg
+ * Images/
- * Images/
+ * logo.png
- * logo.png
+ * JavaScript
- * JavaScript/
-
- * website.js
+ * website.js
* composer.json
-
At this point we can install the sitepackage extension in an TYPO3 instance,
which we will do in the next step.
diff --git a/composer.json b/composer.json
index a8e59d1..6ec057c 100644
--- a/composer.json
+++ b/composer.json
@@ -4,7 +4,8 @@
"description": "The official tutorial how to create a sitepackage in TYPO3 from scratch.",
"license": "CC-BY-NC-SA-4.0",
"require": {
- "typo3/cms-core": "^12.0"
+ "php": "^8.2",
+ "typo3/cms-core": "dev-main as 13.1.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
@@ -23,39 +24,39 @@
},
"require-dev": {
"t3docs/codesnippet": "dev-main",
- "typo3/cms-adminpanel": "^12.0",
- "typo3/cms-backend": "^12.0",
- "typo3/cms-belog": "^12.0",
- "typo3/cms-beuser": "^12.0",
- "typo3/cms-dashboard": "^12.0",
- "typo3/cms-extbase": "^12.0",
- "typo3/cms-extensionmanager": "^12.0",
- "typo3/cms-felogin": "^12.0",
- "typo3/cms-filelist": "^12.0",
- "typo3/cms-filemetadata": "^12.0",
- "typo3/cms-fluid": "^12.0",
- "typo3/cms-fluid-styled-content": "^12.0",
- "typo3/cms-form": "^12.0",
- "typo3/cms-frontend": "^12.0",
- "typo3/cms-impexp": "^12.0",
- "typo3/cms-indexed-search": "^12.0",
- "typo3/cms-info": "^12.0",
- "typo3/cms-install": "^12.0",
- "typo3/cms-linkvalidator": "^12.0",
- "typo3/cms-lowlevel": "^12.0",
- "typo3/cms-opendocs": "^12.0",
- "typo3/cms-recycler": "^12.0",
- "typo3/cms-redirects": "^12.0",
- "typo3/cms-reports": "^12.0",
- "typo3/cms-rte-ckeditor": "^12.0",
- "typo3/cms-scheduler": "^12.0",
- "typo3/cms-seo": "^12.0",
- "typo3/cms-setup": "^12.0",
- "typo3/cms-sys-note": "^12.0",
- "typo3/cms-t3editor": "^12.0",
- "typo3/cms-tstemplate": "^12.0",
- "typo3/cms-viewpage": "^12.0",
- "typo3/cms-workspaces": "^12.0",
+ "typo3/cms-adminpanel": "dev-main as 13.1.0",
+ "typo3/cms-backend": "dev-main as 13.1.0",
+ "typo3/cms-belog": "dev-main as 13.1.0",
+ "typo3/cms-beuser": "dev-main as 13.1.0",
+ "typo3/cms-dashboard": "dev-main as 13.1.0",
+ "typo3/cms-extbase": "dev-main as 13.1.0",
+ "typo3/cms-extensionmanager": "dev-main as 13.1.0",
+ "typo3/cms-felogin": "dev-main as 13.1.0",
+ "typo3/cms-filelist": "dev-main as 13.1.0",
+ "typo3/cms-filemetadata": "dev-main as 13.1.0",
+ "typo3/cms-fluid": "dev-main as 13.1.0",
+ "typo3/cms-fluid-styled-content": "dev-main as 13.1.0",
+ "typo3/cms-form": "dev-main as 13.1.0",
+ "typo3/cms-frontend": "dev-main as 13.1.0",
+ "typo3/cms-impexp": "dev-main as 13.1.0",
+ "typo3/cms-indexed-search": "dev-main as 13.1.0",
+ "typo3/cms-info": "dev-main as 13.1.0",
+ "typo3/cms-install": "dev-main as 13.1.0",
+ "typo3/cms-linkvalidator": "dev-main as 13.1.0",
+ "typo3/cms-lowlevel": "dev-main as 13.1.0",
+ "typo3/cms-opendocs": "dev-main as 13.1.0",
+ "typo3/cms-recycler": "dev-main as 13.1.0",
+ "typo3/cms-redirects": "dev-main as 13.1.0",
+ "typo3/cms-reports": "dev-main as 13.1.0",
+ "typo3/cms-rte-ckeditor": "dev-main as 13.1.0",
+ "typo3/cms-scheduler": "dev-main as 13.1.0",
+ "typo3/cms-seo": "dev-main as 13.1.0",
+ "typo3/cms-setup": "dev-main as 13.1.0",
+ "typo3/cms-sys-note": "dev-main as 13.1.0",
+ "typo3/cms-t3editor": "dev-main as 13.1.0",
+ "typo3/cms-tstemplate": "dev-main as 13.1.0",
+ "typo3/cms-viewpage": "dev-main as 13.1.0",
+ "typo3/cms-workspaces": "dev-main as 13.1.0",
"t3docs/examples": "dev-main",
"t3docs/site-package": "dev-main"
},