Skip to content

Commit

Permalink
[TASK] Move TypoScript into sets folder (#285)
Browse files Browse the repository at this point in the history
Releases: main, 13.4
  • Loading branch information
linawolf authored Nov 25, 2024
1 parent 8ea51a5 commit 5c86b7f
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/Sets/SitePackage/page.tsconfig
@import 'EXT:site_package/Configuration/TsConfig/Page/PageLayout/*.tsconfig'
@import './PageTSconfig/PageLayout/*.tsconfig'
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:site_package/Configuration/Sets/SitePackage/settings.yaml
.. code-block:: yaml
:caption: EXT:site_package/Configuration/Sets/SitePackage/settings.yaml
:linenos:
styles:
templates:
layoutRootPath: EXT:site_package/Resources/Private/Layouts/ContentElements
partialRootPath: EXT:site_package/Resources/Private/Partials/ContentElements
templateRootPath: EXT:site_package/Resources/Private/Templates/ContentElements
content:
textmedia:
maxW: 1200
maxWInText: 600
linkWrap:
lightboxEnabled: true
lightboxCssClass: lightbox
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript
@import 'EXT:site_package/Configuration/TypoScript/Setup/*.typoscript'
@import 'EXT:site_package/Configuration/TypoScript/Setup/Navigation/*.typoscript'
@import './TypoScript/*.typoscript'
@import './TypoScript/Navigation/*.typoscript'
13 changes: 0 additions & 13 deletions Documentation/CodeSnippets/TypoScript/Page.rst.txt

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions Documentation/CodeSnippets/TypoScript/Setup.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
:caption: EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript
:linenos:
@import 'EXT:site_package/Configuration/TypoScript/Setup/*.typoscript'
@import 'EXT:site_package/Configuration/TypoScript/Setup/Navigation/*.typoscript'
@import './TypoScript/*.typoscript'
@import './TypoScript/Navigation/*.typoscript'
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:site_package/Configuration/TypoScript/Setup/Navigation/menu.typoscript
.. Extracted from EXT:site_package/Configuration/Sets/SitePackage/TypoScript/Navigation/menu.typoscript
.. code-block:: typoscript
:linenos:
page {
10 {
Expand Down
22 changes: 0 additions & 22 deletions Documentation/CodeSnippets/TypoScript/pageview.rst.txt

This file was deleted.

33 changes: 5 additions & 28 deletions Documentation/CodeSnippets/codesnippets.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,6 @@
'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
'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' => 'EXT:site_package/Configuration/TypoScript/Setup/pageview.typoscript',
'targetFileName' => 'TypoScript/pageview.rst.txt',
'caption' => 'EXT:site_package/Configuration/TypoScript/Setup/pageview.typoscript',
'showLineNumbers' => true
],
[
'action' => 'createCodeSnippet',
'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' => 'EXT:site_package/Configuration/TypoScript/Setup/Navigation/menu.typoscript',
'targetFileName' => 'TypoScript/Navigation/menu.typoscript',
'showLineNumbers' => true
],

#code Snippets Extension Configuration
[
'action' => 'createCodeSnippet',
Expand All @@ -53,6 +25,11 @@
'targetFileName' => 'ExtensionConfiguration/SitePackage-setup.rst.txt',
'caption' => 'EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript',
],
[
'action' => 'createCodeSnippet',
'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/TypoScript/Navigation/menu.typoscript',
'targetFileName' => 'TypoScript/menu.rst.txt',
],
[
'action' => 'createCodeSnippet',
'sourceFile' => 'EXT:site_package/Configuration/Sets/SitePackage/settings.definitions.yaml',
Expand Down
4 changes: 2 additions & 2 deletions Documentation/MainMenuCreation/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ The :ref:`data processor 'menu' <t3tsref:MenuProcessor>` can be configured to
provide the data of all pages in your current site to your page template.

We save the TypoScript configuration for the menu into file
:file:`Configuration/TypoScript/Setup/Navigation/menu.typoscript`:
:file:`Configuration/Set/MySitePackage/TypoScript/Navigation/menu.typoscript`:

.. include:: /CodeSnippets/TypoScript/Navigation/menu.typoscript
.. include:: /CodeSnippets/TypoScript/menu.rst.txt

.. _fluid-implement-main-menu:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/MinimalExample/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -371,5 +371,5 @@ example when setting your favicon in TypoScript:
:caption: package/my-site-package/Configuration/Sets/SitePackage/setup.typoscript
page {
shortcutIcon = EXT:my_site_package/Ressources/Public/Icons/favicon.ico
shortcutIcon = EXT:my_site_package/Resources/Public/Icons/favicon.ico
}
18 changes: 8 additions & 10 deletions Documentation/TypoScript/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Familiarize yourself with the TypoScript `@import` syntax first:
Import the TypoScript from a different location
===============================================

Create a new folder called :path:`Configuration/TypoScript/Setup`. In this
create a file called :file:`pageview.typoscript` and copy the content from
Create a new folder called :path:`Configuration/Sets/MySet/TypoScript`. In this
create a file called :file:`page.typoscript` and copy the content from
file :file:`Configuration/Sets/SitePackage/setup.typoscript`
into it.

Expand All @@ -39,7 +39,7 @@ Then change the latter file to contain the following:
.. code-block:: typoscript
:caption: Configuration/Sets/SitePackage/setup.typoscript
@import 'EXT:site_package/Configuration/TypoScript/Setup/pageview.typoscript'
@import './TypoScript/page.typoscript'
Flush the caches and preview the page. The output should be unchanged.

Expand Down Expand Up @@ -72,16 +72,14 @@ Your :path:`Configuration` directory should now have the following structure:

* Sets

* SitePackage
* MySitePackage

* config.yaml
* setup.typoscript

* TypoScript
* TypoScript

* Setup
* page.typoscript

* pageview.typoscript
* config.yaml
* setup.typoscript

In the next steps you will create more TypoScript files to configure the
:ref:`Content mapping <t3sitepackage:content-mapping>` and the
Expand Down

0 comments on commit 5c86b7f

Please sign in to comment.