Quiz
6. TypoScript III (ab 6.8)
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 (23)
1Which statements about stdWrap functions in TypoScript are correct? (3)
- AstdWrap functions process values based on properties.
- BTYPO3 can execute up to 64 stdWrap functions per request.
- CTYPO3 does not cache the result of a stdWrap function by default.
- DYou can use stdWrap to manipulate a text string, e.g. convert lower case letters to upper case letters.
- EThe system extension EXT:ts_stdwrap is required to execute stdWrap TypoScript functions.
- FstdWrap properties can be used as conditions, e.g. ifNull, ifEmpty, and ifBlank.
2Given the following TypoScript code, what is the output at the frontend? (1)
page = PAGE
page.10 = TEXT
page.10.value = foo
page.10.if {
value.field = subtitle
equals = bar
}- AThe output is always “foo” on all pages.
- BThe output is “foo” on all pages whose subtitle is “bar”.
- CThe output is “bar” on all pages whose subtitle is “foo”.
- DThe output is “foo” on all subpages of pages whose subtitle is “bar”.
- EThe output is “foo” by default and “bar” on all pages whose subtitle is “bar”.
3Replace “???” in the TypoScript code below to output the author’s name of the current page as a link to the author’s email address in the frontend. (1)
page = PAGE
page.10 = TEXT
page.10 {
???
insertData = 1
typolink.parameter.field = author_email
}- Avalue = author
- Bvalue = {$page:$author}
- Cvalue = {page:author}
- Dvalue = {$author}
- Evalue = page:author
- Fvalue = $author
4What is the output of the following TypoScript code? (2)
page = PAGE
page {
10 = TEXT
10.value = foobar
10.override {
required = 1
data = field:subtitle // field:nav_title
}
}- AThe output is foobar if both fields subtitle and nav_title are empty.
- BThe output is foobar if both fields subtitle and nav_title contain values.
- CThe output is foobar if the field subtitle is empty and nav_title contains a value.
- DThe output is foobar if the field subtitle contains a value and nav_title is empty.
- EThe subtitle is shown if the field subtitle contains a value and nav_title is empty.
- FThe navigation title is shown if both fields subtitle and nav_title contain values.
5Replace “???” in the TypoScript code below to meet the requirements as outlined. (1)
Your TypoScript code defines a placeholder image using the temp.stdimage object. Backend users can upload a custom image, which is stored in the temp.userimage object. TYPO3 should display the placeholder image by default when no custom image has been uploaded.
page = PAGE
page.10 = COA
page.10 {
???
}- A10 < temp.stdimage
20 < temp.userimage - B10 < temp.userimage
20 < temp.stdimage - C10 < temp.userimage
20.stdWrap.ifEmpty.cObject < temp.stdimage - D10 < temp.userimage
10.stdWrap.ifEmpty.cObject < temp.stdimage - E10 < temp.stdimage
10.stdWrap.ifEmpty.cObject < temp.userimage
- A10 < temp.stdimage
6Replace “???” in the TypoScript code below to output the text “foobar” in the frontend whenever the website is accessed with the GET parameter print=1. (1)
page = PAGE
page.10 = TEXT
page.10 {
value = foobar
???
}- Aif.isTrue.data = GET : print
- Bif.isPositive = GP : print
- Cif.value.data = GP : print
if.equals = 1 - Dif.value.data = GET : print
if.equals = 1
7Replace “???” in the TypoScript code below to output the text “foobar” as a link to example.com in the frontend, styled by a CSS class external. (2)
page = PAGE
page.10 = TEXT
page.10 {
value = foobar
???
}- Atypolink = https://example.com
typolink.ATagParams = class='external' - Btypolink.parameter = https://example.com
typolink.parameter.ATagParams = class='external' - Ctypolink.parameter = https://example.com
typolink.ATagParams = class='external' - Dtypolink.parameter = https://example.com - external
- Etypolink = https://example.com - external
- Atypolink = https://example.com
8Replace “???” in the TypoScript code below to generate a link to the page with ID 42. When clicked, the link should open the target page in a popup window with dimensions 250×250 pixels. (1)
page = PAGE
page.10 = TEXT
page.10 {
value = new window
???
}- Atypolink.parameter = t3://page?uid=42 250x250
- Btypolink.popup = t3://page?uid=42 250x250
- Ctypolink.parameter = 250x250 page=42
- Dtypolink.parameter = 42
typolink.popup = width=250,height=250 - Etypolink.parameter = t3://page?uid=42
typolink.onclick = popup:250x250
9Replace “???” in the TypoScript code below to output the image as a link. (1)
page = PAGE
page.10 = IMAGE
page.10 {
file = fileadmin/user_upload/example.jpg
???
}- Atypolink.parameter = t3://page?uid=42
- BstdWrap.typolink.parameter = t3://page?uid=42
- Cwrap.typolink.parameter = t3://page?uid=42
- Dfile.typolink.parameter = t3://page?uid=42
10Replace “???” in the TypoScript code below to output a human-readable format of the given UNIX time stamp. (1)
page = PAGE
page.10 = TEXT
page.10.value = 1226923200
page.10.??? = %A, %d %B %Y- Astrftime
- Bformat
- Cmktime
- Dtime
11Replace “???” in the TypoScript code below to output the number of days that have elapsed since the TYPO3 certification program started (UNIX timestamp: 1226923200). (1)
page = PAGE
page.10 = COA_INT
page.10 {
10 = TEXT
10 {
cObject = TEXT
cObject.data = date:U
cObject.wrap = (|-1226923200)/86400
???
wrap = TYPO3 certifications started | days ago
}
}- Acalc = intval
- BprioriCalc = 1
- CprioriCalc = intval
- Dpriori = calc
12Replace “???” in the TypoScript code below to output the text “HELLO FOO!” in the frontend. (1)
page = PAGE
page.10 = TEXT
page.10.value = HELLO WORLD!
???- Att_content.search.WORLD.replace = FOO
- Btt_content.parseFunc.replace.WORLD = FOO
- Cpage.stdWrap.parseFunc.short.WORLD = FOO
- Dpage.parseFunc.replace = WORLD:FOO
- Epage.HTMLparser.replace.WORLD = FOO
13Replace “???” in the TypoScript code below with a content object (cObject) that displays the current time at the frontend. (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
14Which TypoScript objects are required to process and output contents from the tt_content database table? (2)
- APAGE
- BFLUIDTEMPLATE
- CCONTENT
- DCONFIG
- ETEXT
- FUSER
15Replace “???” in the TypoScript code below to output the text “Title:” followed by the title of the current page in the frontend. (1)
page = PAGE
page.10 = COA
page.10 {
???
10.foobar = TEXT
10.foobar.field = title
20 = TEXT
20.value = Title:
30 = TEXT
30.data = register:foobar
}- A10 = RECORDS
- B10 = REGISTER
- C10 = SAVE_REGISTER
- D10 = LOAD_REGISTER
- E10 = RESTORE_REGISTER
16Which options can you use instead of “???” to read the content of the register foobar in the following TypoScript code? (2)
page = PAGE
page.10 = COA
page.10 {
10 = LOAD_REGISTER
10.foobar = TEXT
10.foobar.field = title
20 = TEXT
???
}- A20.register = foobar
- B20.data = register:foobar
- C20.foobar = data:register
- D20.wrap = register:foobar
- E20.dataWrap = {register:foobar}
- F20.data = {register:foobar}
17Replace “???” in the TypoScript code below to output the path of the processed image file as the background image in the frontend. (1)
page = PAGE
page.10 = ???
page.10 {
file = fileadmin/user_upload/background.jpg
file.width = 100
file.height = 100
stdWrap.wrap (
<div style="background-image: url(|); width: 100px; height: 100px;">Image</div>
)
}- AIMG
- BIMAGE
- CIMG_RESOURCE
- DIMAGE_RESOURCE
- EGIFBUILDER
18Replace “???” in the TypoScript code below to output a content element in the frontend. (1)
page = PAGE
page.10 = CONTENT
page.10 {
???
select.where = colPos = 0
select.max = 1
}- Aselect.table = pages
- Bselect.table = tt_content
- Ctable = pages
- Dtable = tt_content
- Etemplate = tt_content
19What is the output of the following TypoScript code in the frontend? (1)
page = PAGE
page.10 = CONTENT
page.10 {
table = tt_content
select.pidInList = 2,3,4
renderObj = TEXT
renderObj.stdWrap.field = header
renderObj.stdWrap.wrap = <h1>|</h1>
}- AThe TypoScript code lists the headlines of the content elements with the IDs 2, 3, and 4 stored in the tt_content database table.
- BThe TypoScript code lists the headlines of the content elements stored in the tt_content database table from the pages with the IDs 2, 3, and 4.
- CThe TypoScript code lists the page titles of the pages with the page IDs 2, 3, and 4.
- DThe TypoScript code lists the page titles of the parent pages of the pages with the IDs 2, 3, and 4.
20Replace “???” in the TypoScript code below to output records with the IDs 2 and 3 from the tt_content database table in the frontend. (1)
page = PAGE
page.10 = ???
page.10 {
tables = tt_content
source = 2,3
dontCheckPid = 1
}- ATEXT
- BHTML
- CCOA
- DRECORDS
- EDATA
- FCONTENT
21Which cObjects in TypoScript can you use to execute custom PHP functions or methods in PHP classes? (1)
- ATypoScript can not execute custom PHP functions or methods in PHP classes.
- BThe FILES and FILES_INT cObjects.
- CThe PHP and PHP_EXECUTE cObjects.
- DThe COA and COA_INT cObjects.
- EThe USER and USER_INT cObjects.
22What is the output of the following TypoScript code in the frontend if the frontend layout of the current page is set to “Layout 1 [1]” in the page properties? (1)
temp.foobar = CASE
temp.foobar {
key.field = layout
default = TEXT
default.value = Alice
1 = TEXT
1.value = Bob
2 = TEXT
2.value = Fred
}
page = PAGE
page.10 < temp.foobar- AThe output is the text “Alice”.
- BThe output is the text “Bob”.
- CThe output is the text “Fred”.
- DThe output is the text “BobFred”.
- EThe output is the text “AliceBobFred”.
- FThe output is empty.
23Considering the following TypoScript code, which statements about the
PAGEVIEW cObject are correct? (2)
page = PAGE
page {
10 = PAGEVIEW
10 {
paths.10 = EXT:sitepackage/Resources/Private/PageView/
dataProcessing.10 = page-content
}
}- AA Fluid template file must exist in the site package extension at:
Resources/Private/PageView/Pages/ - BYou can output the site identifier in the Fluid template:
<h1>{site.identifier}</h1> - CAs backend layouts are not taken into account by the PAGEVIEW cObject, all content elements must be stored in the colPos=0 column.
- DThe Fluid template file names can end in .html, .xml, or .json.
- AA Fluid template file must exist in the site package extension at:
Information
- Description
- TYPO3 TYPO3 CI v13 Quiz on 6. TypoScript III (ab 6.8), created by Ma Hi on 10/10/2025.
- Author
- Ma Hi
- Language
- Deutsch
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz