Quiz
6. TypoScript
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (25)
1The size and complexity of a TypoScript setup template that is maintained through the backend is growing rapidly and becomes confusing. What can you do to simplify working with it? (1)
- ADivide the TypoScript template into several files and include/import them into your main template.
- BUse gzip to compress the TypoScript files to reduce their size.
- CRemove all line breaks in the TypoScript code to reduce its size.
- DMove the TypoScript setup template to the TypoScript constants field to save space.
- EUse the Optimize TypoScript function to remove redundant and unused TypoScript code.
2The error message “No TypoScript record found!” comes up when you access the frontend of a TYPO3 site. What causes this issue? (1)
- ANo HTML template was specified.
- BThe TypoScript record for the site is not stored in the root page (page ID 0).
- CThe path to the HTML template is not correct.
- DNo TypoScript record has been specified for the root page of the site.
3The error message “No page configured for type=0.” comes up when you access the frontend of a TYPO3 site. What causes this issue? (1)
- ANo HTML template was specified.
- BThe Rootlevel toggle switch in the TypoScript record is not enabled.
- CNo valid PAGE object is defined.
- DThe page does not contain any content elements.
- EThe site configuration is missing.
4How do you import/include a TypoScript configuration file in your TypoScript setup? (2)
- ABy a right mouse-click on the file in the File → Filelist backend module and selecting Include TypoScript records.
- BBy using the following TypoScript instruction to include the file (one line):
@INCLUDE_TYPOSCRIPT FILE='EXT:site/Configuration/TypoScript/setup.typoscript' - CBy using the following TypoScript instruction to include the file (one line):
<INCLUDE_TYPOSCRIPT:
source="FILE:EXT:site/Configuration/TypoScript/setup.typoscript"> - DBy using the following TypoScript instruction to include the file (one line):
@import 'EXT:site/Configuration/TypoScript/setup.typoscript'
5What are possible methods of including all TypoScript configuration files, that are stored in a directory, into your system? (2)
- AUse the following statement to include the directory (e.g. extension “sitepackage”):
<INCLUDE_TYPOSCRIPT: directory="EXT:sitepackage/Configuration/Typoscript/"> - BUse the following statement to include the directory (e.g. extension “sitepackage”):
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:sitepackage/Configuration/Typoscript/"> - CUse the following statement to include the directory (e.g. extension “sitepackage”):
@include 'EXT:sitepackage/Configuration/TypoScript/' - DUse the following statement to include the directory (e.g. extension “foobar”):
@import 'EXT:foobar/Configuration/TypoScript/' - EUse the following statement to include the directory (e.g. extension “foobar”):
@require 'EXT:foobar/Configuration/TypoScript/'
- AUse the following statement to include the directory (e.g. extension “sitepackage”):
6Consider the following two instructions to import/include TypoScript configuration files. Which statements are correct? (4)
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:sitepackage/Configuration/Typoscript/Foobar/">
@import 'EXT:sitepackage/Configuration/TypoScript/Foobar/'- AYou can not use both, the old “<INCLUDE_TYPOSCRIPT>” and the new “@import” syntax at the same time.
- BMultiple files stored in a directory are imported in alphabetical order when importing the directory.
- CFiles included by the “@import” statement can contain further “@import” statements.
- DThe “@import” statement lets you import files and directories.
- EThe “<INCLUDE_TYPOSCRIPT>” statement supports relative paths if the statement is used in a file.
- FThe “@import” statement supports the “*” character as a wildcard.
7The following @import statement in TypoScript does not work. What causes the problem? (1)
@import fileadmin/Configuration/TypoScript/setup.typoscript- AThe keyword “FILE:” is missing. The line shoud read:
@import FILE:fileadmin/Configuration/TypoScript/setup.typoscript - BThe @import statement was removed in TYPO3 v13 and can’t be used anymore.
- CYou can not store TypoScript configuration files in the fileadmin/ path. You must use an extension, for example:
@import EXT:sitepackage/Configuration/TypoScript/setup.typoscript - DSingle or double quotes are missing. The line should read:
@import "fileadmin/Configuration/TypoScript/setup.typoscript"
- AThe keyword “FILE:” is missing. The line shoud read:
8You changed a setting in the TypoScript Object Browser. Where does TYPO3 store the new value? (2)
- AAt the start of the TypoScript “Setup” template.
- BAt the end of the TypoScript “Setup” template.
- CAt the start of the TypoScript “Constant” template.
- DAt the end of the TypoScript “Constant” template.
- EIn the config/system/settings.php file.
9Which backend module or utility reports possible TypoScript syntax errors and can help locating the cause of the issue? (1)
- AIn Site Management → TypoScript, the TypoScript Overview submodule.
- BIn Site Management → TypoScript, the Active TypoScript submodule (TypoScript Object Browser).
- CIn Site Management → TypoScript, the Included TypoScript submodule.
- DIn Admin Tools → Environment, the Environment Status submodule.
- EThe Admin Panel.
10What is the impact of the following two lines of TypoScript code in the constants section? (2)
# cat=foobar/ctext/a; type=color; label=text color
mytextcolor = red- ATYPO3 ignores the first line because of the comment # character.
- BThe value red is assigned to the constant mytextcolor.
- CThe value red is assigned to the variable foobar.ctext.a.
- DThe Constant Editor shows a selection field that allows backend users to select a colour.
- EThis first line results in an error as # is an invalid character in TypoScript constants.
11You use the Constant Editor to change a value of a TypoScript constant. Where is the new value stored? (1)
- AIn the TypoScript “setup” template of the parent page.
- BIn the TypoScript “setup” template of the current page.
- CIn the TypoScript “constant” template of the parent page.
- DIn the TypoScript “constant” template of the current page.
- EIn the config/system/settings.php file.
- FIn the config.yaml site configuration file.
12Given the following TypoScript setup, what is the correct line in the constants area to set the page cache timeout to 3600 seconds? (1)
config.cache_period = {$foobar}- A$foobar = 3600
- B{$foobar = 3600}
- Cfoobar = 3600
- D%foobar% = 3600
- EFOOBAR = 3600
13What is the purpose and result of the following TypoScript code? (1)
page.meta.description = {$meta.description}
page.meta.description.override.field = description- AIf the field description in the page properties is empty, the HTML meta tag “description” is empty.
- BIf the field description in the page properties is empty, the respective constant is used as the HTML meta tag “description”.
- CIf the field description in the page properties is not empty, the respective constant is used as the HTML meta tag “description”.
- DThe HTML meta tag “description” always contains the respective constant, no matter which value the field description in the page properties contains.
14The Fluid template of the page.10 object contains a variable {emailaddress}. How can you output the string foo as the value of this variable? (1)
- AYou enter the following code in the TypoScript constant area:
page.10.templates.placeholder.emailaddress = TEXT
page.10.templates.placeholder.emailaddress.value = foo - BYou enter the following code in the TypoScript setup area:
page.10.templates.placeholder.emailaddress = TEXT
page.10.templates.placeholder.emailaddress.value = foo - CYou enter the following code in the TypoScript setup area:
page.10.templates.variables = EMAIL
page.10.templates.variables.address = foo - DYou enter the following code in the TypoScript constant area:
page.10.variables.emailaddress = TEXT
page.10.variables.emailaddress.value = foo - EYou enter the following code in the TypoScript setup area:
page.10.variables.emailaddress = TEXT
page.10.variables.emailaddress.value = foo
- AYou enter the following code in the TypoScript constant area:
15Given the following TypoScript code, what is the output at the frontend? (1)
page = PAGE
page.10 = COA
page.10 {
30 = TEXT
30.value = A
30.wrap = B|C
40 = TEXT
20 < .30
40 = TEXT
40.value = D
}- AABCD
- BDBACBAC
- CBACD
- DDCBA
- EABCABC
- FBACBACD
16Given the following TypoScript code, what is the output at the frontend? (1)
page = PAGE
page.10 = COA
page.10 {
10 = TEXT
10.value = ABC
20 < .10
30 = HTML
30.value = B
30.wrap = C|A
}- AABCCBA
- BABCABCCBA
- CABCABCABC
- DABCABC
- EAABCC
17Given the following TypoScript code, what is the output at the frontend? (1)
page = PAGE
page.10 = COA
page.10 {
30 = TEXT
30.value = A
40 = TEXT
40.value = B
20 = TEXT
20.value = C
20.stdWrap.append < .30
10 = TEXT
10.prepend < .40
10.value = D
}- AABCD
- BDCBA
- CBDCAAB
- DABCADB
- EBDCAB
- FDBCAB
18Given the following TypoScript code, what is the output at the frontend? (1)
foobar = TEXT
foobar.value = B
page = PAGE
page.10 = COA
page.10.10 =< foobar
page.10.10.wrap = A|C
foobar.value = C
page.10.20 < foobar- AACCC
- BABCC
- CABBC
- DA|CC
- EThe TypoScript code does not produce any output
19Given the following TypoScript code, what is the output at the frontend? (1)
temp.foobar = TEXT
temp.foobar.value = B
page = PAGE
page.10 = COA
page.10.10 =< temp.foobar
page.10.10.wrap = A|C- AA
- BAB
- CABC
- DBA|C
- EThe TypoScript code does not produce any output.
20Given the following TypoScript code, what is the output at the frontend? (1)
object1 = TEXT
object1.value = foo
page = PAGE
page {
10 <= object1
15 < object1
15.value = -
20 < object1
}
object1.value = bar- Afoo
- B-foo
- Cbar-
- Dfoo-foo
- Efoo-bar
- Fbar-foo
21Replace “???” in the TypoScript code below so that the code outputs AB in the frontend. (1)
lib.obj = COA
lib.obj {
10 = COA
10.10 = TEXT
10.10.value = A
10.20 < .10
}
page = PAGE
page.10 = COA
page.10 {
10 =< lib.obj
???
}- A10.10.value = B
- B10.20.value = B
- C10.10.20.value = B
- D10.10.20.10.value = B
- E10.10.10.20.value = B
22Which of the following code snippets correctly assign a multi-line value in place of the question marks? (1)
page = PAGE
page.10 = TEXT
???- Apage.10.value (Hello
World
) - Bpage.10.value (
Hello
World
) - Cpage.10.value = (
HelloWorld
) - Dpage.10.value = (Hello
World)
- Apage.10.value (Hello
23It is possible to deactivate lines in TypoScript (add comments). Which characters can be used as comment characters? (3)
- A//
- B/* ... */
- C#
- D/
- E<!-- ... -->
- F{ ... }
24Given the following TypoScript code, what is the output at the frontend? (1)
page = PAGE
page.10 = TEXT
page.10.value = 4,1,3,2
page.10.value := addToList(6,5)
page.10.value := removeFromList(2)
page.10.value := sortList()- A4,3,2,6,5
- B1,3,4,5,6
- C6,5,4,1,3,2
- D1,2,3,4,5,6
25Which statements about operators in TypoScript are correct? (3)
- AThe < operator moves the content of an object into another.
- BThe < operator copies an object path to another.
- CThe -> operator assigns a value to an object.
- DThe := operator can be used to reverse the order of entries in a comma-separated list.
- EThe =< operator does not exist.
- FThe line foo := getEnv(bar) copies the value of the environment variable bar to the key foo.
Information
- Description
- TYPO3 TYPO3 CI v13 Quiz on 6. TypoScript, created by Ma Hi on 10/10/2025.
- Author
- Ma Hi
- Language
- Deutsch
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz