Quiz
6. TypoScript (Part 1)
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (20)
1Which of these statements about TypoScript is true? (1)
- ATypoScript is a programming language like ActionScript or JavaScript
- BTypoScript is an extension for TYPO3
- CTypoScript can be used to configure how the output of a website should appear in the frontend
- DPHP programming skills are required to write TypoScript code
2The 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? (2)- ADivide the TypoScript template into several files and include/import them into your master template
- BDivide the TypoScript template into several templates and include them in the “Include basis template”
section - CRemove all line breaks in the TypoScript code to reduce the amount of data
- DUse the “Optimize TypoScript” function to remove redundant and unused TypoScript code
- EMove the TypoScript setup template to the TypoScript constants field to save space
3The error message “No TypoScript template found!” comes up
when you access the frontend of a TYPO3 site. What causes this
issue? (1)- ANo HTML template was specified
- BThe TypoScript template is not stored on the root page ID 0
- CThe path to the HTML template is not correct
- DNo TypoScript rootlevel template was specified
4The error message “The page is not configured!” 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 root template is not enabled
- CNo valid PAGE object is defined
- DThe page you accessed does not contain any content elements
- EThe site configuration is missing
5How do you import/include a TypoScript configuration file in your
TypoScript setup? (2)- ABy a right mouse-click on the file in the backend module “File → Filelist” and selecting “include
template” - 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'
- ABy a right mouse-click on the file in the backend module “File → Filelist” and selecting “include
6What are possible ways to include 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”):
7The following @import instruction in TypoScript does not work.
What causes the problem? (1)- AThe keyword “FILE:” is missing. The line shoud read:
@import FILE:fileadmin/Configuration/TypoScript/setup.typoscript - BThe @import instruction was removed in TYPO3 v11 LTS 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:
8Replace “???” in the TypoScript code below with a content object
(cObject) to display the current time on the website. (1)
page = PAGE
page.10 = ???
page.10 {
10 = TEXT
10.data = date:U
10.strftime = date: %F, time: %T
}- AUSER
- BUSER_INT
- CCOA
- DCOA_INT
- ETIME
- FTEXT
- GTEXT_INT
9Your TypoScript code contains a syntax error. Which backend
utilities help you to locate the cause of the issue? (2)- AThe TypoScript Object Browser (TSOB)
- BThe Constant Editor
- CThe Template Analyzer
- DThe Admin Panel
- EThe backend module “Admin Tools → Environment”
10What is the effect of the following two lines of TypoScript code in
the constants area? (2)
# cat=foobar/ctext/a; type=color; label=text color
mytextcolor = red- ATYPO3 ignores the first line because of the comment character #
- BThe constant mytextcolor is set to red
- CThe value red is assigned to the variable foobar.ctext.a
- DThe Constant Editor shows a selection field that allows backend users to pick a colour
- EThis code has no effect
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 LocalConfiguration.php file
12The following TypoScript setup is given. 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 result of the following TypoScript code? (1)
page.meta.description = {$meta.description}
page.meta.description.override.field = description- AThe value of the field “description” is set as the HTML meta tag “description”
- BIf the field “description” contains no value, the respective constant is used as the HTML meta tag
“description” - CThe HTML meta tag “description” always contains the respective constant, no matter which value the
field “description” contains - DThe HTML meta tag “description” always contains the field “description”, no matter which value is
assigned to the respective constant
14The Fluid template of the page.10 object contains a variable
{emailaddress}. This needs to be replaced by the value foo. How
can you achieve this? (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
Besides
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
Informações
- Descrição
- TYPO3 Zertifikat TYPO3 CI 2022 Quiz sobre 6. TypoScript (Part 1), criado por Angela Dudtkowski em 30-05-2022.
- Autor
- Angela Dudtkowski
- Idioma
- Deutsch
- Visualizações
- 1
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz