Feature #28880
closedEnable INCLUDE_TYPOSCRIPT for be_layouts
100%
Description
Since the be_layout uses typoscript for storeing the configuration only inside the layout field its not possible to handle the layout in an version controll system.
With only one line changed it would be possible to achive in the layout field something like this:
<INCLUDE_TYPOSCRIPT:source="FILE:fileadmin/layout.ts">
All that needs to be done is change typo3/sysext/cms/classes/class.tx_cms_backendlayout.php with the following:
$parser>parse($backendLayout['config']);
+$parser->parse($parser->checkIncludeLines($backendLayout['config']));
Now it would be possible to load external layout script files. There is no need to store changes back there because changes in typoscript templates are stored in the setup or constants field too.
Updated by Steffen Ritter over 12 years ago
- Tracker changed from Bug to Feature
- Target version deleted (
4.7.0)
Updated by Stefan Neufeind almost 12 years ago
Change for 6.0+ to make it work ("basic version"): Make above change but to PageLayoutView.php
$parser>parse($backendLayoutRecord['config']);
+$parser->parse($parser->checkIncludeLines($backendLayoutRecord['config']));
(Tested and works for me.)
And since that helps for certain special use-cases already, we should imho for now maybe add it but not yet "advertise" it. Since the full resolution misses the following additional points (when editing a backend-layout record:)
- Have a checkbox to "Include TypoScript file content" (as for example in Template > Setup)
- If set then include that content and save it to external files again when saving (for brief examples how to do that see TypoScriptTemplateInformationModuleFunctionController.php, processTemplateRowAfterLoading() and processTemplateRowBeforeSaving())
- Make the layout-wizard work somehow. (I guess that thing will strip the include-markers upon save.)
Updated by Anja Leichsenring almost 12 years ago
Patchset 1 is available at https://review.typo3.org/#/c/17052
Updated by Gerrit Code Review almost 12 years ago
- Status changed from Accepted to Under Review
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17052
Updated by Gerrit Code Review almost 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17052
Updated by Anja Leichsenring almost 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b7942cf8c740838216bb67328b94f72f8f4a58ba.