Project

General

Profile

Actions

Feature #28880

closed

Enable INCLUDE_TYPOSCRIPT for be_layouts

Added by Sebastian Fischer over 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2011-08-10
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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.

Actions

Also available in: Atom PDF