Skip to content
Snippets Groups Projects
Commit 9f475e3f authored by Riccardo De Contardi's avatar Riccardo De Contardi Committed by Daniel Goerz
Browse files

[TASK] fix list formatting

Add some empty lines to allow correct list formatting, like on
https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/edit/mas
ter/Documentation/ApiOverview/TypoScriptSyntax/Syntax/Includes.rst

Releases: master, 9.5
Resolves: #88641
Change-Id: Ice387d8b97d8b74ea859c92d274bcb535005fdae
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61160


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent f2e5d2c6
Branches
Tags
No related merge requests found
......@@ -31,19 +31,28 @@ imports and works as follows:
@import 'EXT:myproject/Configuration/TypoScript/'
The main benefits of `@import` over using `<INCLUDE_TYPOSCRIPT>` are:
- Less error-prone when adding statements to TypoScript
- Easier to read what should be included (files, folders - instead of `FILE:` and `DIR:` syntax)
- @import is more speaking than a pseudo-XML syntax
The following rules apply:
- If multiple files are found, the file name is important in which order the files (sorted
alphabetically by filename)
- Recursive inclusion of files (@import within @import is possible)
- It is not possible to use a condition as possible with <INCLUDE_TYPOSCRIPT condition=""> as its
sole purpose is to include files, which happens before the actual real condition matching happens,
and the INCLUDE_TYPOSCRIPT condition syntax is a conceptual mistake, and should be avoided.
- Both `<INCLUDE_TYPOSCRIPT>` and `@import` can work side-by-side in the same project
- If a directory is included, it will not include files recursively
- Quoting of the filename is necessary, both double quotes (") and single tickst (') can be used
The syntax is designed to stay, and @import is not intended to be extended with more logic in the
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment