Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[!!!][TASK] Remove "sys_template.nextLevel"
The special handling "nextLevel" in TypoScript templates to only load a specific sys_template on the next level (subpages and further down the rootline) but not on the current level, is removed. It is recommended to use proper inclusions and TypoScript conditions instead. This reduces complexity within the TemplateService parser, and for newcomers a very confusing option after gathering some feedback on this topic. The database field "sys_template.nextLevel" is therefore removed. Resolves: #88640 Releases: master Change-Id: I06e14d6dfbde82eb36f2ffc30b61bd9870906246 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61158 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by: Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com> Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
- Loading branch information
Showing
9 changed files
with
51 additions
and
61 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
49 changes: 49 additions & 0 deletions
49
...-DatabaseFieldSys_templatenextLevelAndTypoScriptSublevel-InheritanceRemoved.rst
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,49 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
======================================================================================================== | ||
Breaking: #88640 - Database field "sys_template.nextLevel" and TypoScript sublevel - inheritance removed | ||
======================================================================================================== | ||
|
||
See :issue:`88640` | ||
|
||
Description | ||
=========== | ||
|
||
The database field `nextLevel` of the database table `sys_template` where TypoScript configuration | ||
is stored, has been removed. | ||
|
||
The field `nextLevel` was introduced in TYPO3 v3.x before TypoScript could be imported from | ||
external files. | ||
|
||
Nowadays, TypoScript conditions should be used much more instead of this `nextLevel` feature, | ||
which is kind of a pseudo-condition. | ||
|
||
|
||
Impact | ||
====== | ||
|
||
The database field is removed, and not evaluated anymore in TypoScript compilation. | ||
|
||
Requesting the database field in custom database queries will result in an SQL error. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
TYPO3 installations that have `sys_template` records with this flag activated, | ||
or querying this database field in third-party extensions. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
Check for existing `sys_template` records having this flag activated by executing | ||
this SQL command: | ||
|
||
:sql:`SELECT * FROM sys_template WHERE nextLevel>0 AND deleted=0;` | ||
|
||
before updating TYPO3 Core. | ||
|
||
Replace the sys_template record (the uid of the record is stored in the "nextLevel" field) with a condition e.g. :ts:`[tree.level > 1]` to add TypoScript for subpages. | ||
|
||
.. index:: Database, NotScanned |
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