Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add Page TsConfig configuration
- Loading branch information
Florian RIVAL
committed
Nov 10, 2023
1 parent
972f72c
commit e69cb2e
Showing
9 changed files
with
101 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
.. _pagets: | ||
|
||
Page TSConfig | ||
============= | ||
|
||
Since version **3.1** TypoScript configuration (setup only) can also be overridden with Page TSConfig. | ||
|
||
The configuration set with Page TSConfig will be merged with default configuration and default values will be overridden. | ||
|
||
Sample | ||
------ | ||
|
||
.. code-block:: typoscript | ||
module.tx_sitegenerator { | ||
settings { | ||
siteGenerator { | ||
wizard { | ||
# Remove all steps | ||
steps.clear = 1 | ||
steps { | ||
10 = Oktopuce\SiteGenerator\Wizard\StateCopyModelSite | ||
20 = Oktopuce\SiteGenerator\Wizard\StateUpdateHomePage | ||
30 = Oktopuce\SiteGenerator\Wizard\StateUpdateTemplateHP | ||
40 = Oktopuce\SiteGenerator\Wizard\StateUpdatePageTs | ||
50 = Oktopuce\SiteGenerator\Wizard\StateUpdateSlugs | ||
} | ||
formDto = Oktopuce\SiteGeneratorCustomized\Dto\SiteGeneratorDto | ||
} | ||
} | ||
} | ||
} | ||
.. Tip:: | ||
Note the use of **steps.clear** to remove all step already defined through TypoScript | ||
|
||
You can also override the backend templates with Page TSConfig : | ||
|
||
.. code-block:: typoscript | ||
templates.oktopuce/site-generator.templateRootPaths = oktopuce/site-generator:../site_generator_customized/Resources/Private/OtherTemplates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters