8. TypoScript Flashcards

TypoScript of the TYPO3 cms

1
Q

8.1.1 Which of the following objects are not TypoScript top level objects? (2)

  1. config
  2. TEXT
  3. styles
  4. GMENU
  5. PAGE
  6. includeLibs
A

Therefore, the correct answers are 2 and 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

8.1.2 Which of these statements about TypoScript are true? (2)

  1. TypoScript is a programming language like ActionScript or JavaScript.
  2. TypoScript is an extension for TYPO3.
  3. TypoScript can be used to configure TYPO3.
  4. TypoScript mainly controls the output of the website in the frontend.
  5. Extensive knowledge of PHP is required to use TypoScript.
A

Therefore, the correct answers are 3 and 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

8.1.3 You want to assign a multi-line value. Which of the following code sections are syntactically correct as replacements for the question marks? (1)

page = PAGE
page.10 = TEXT
???

  1. It is not possible to specify multi-line values in TypoScript; you can assign only single-line values.
  2. Answer
    page.10.value (
    Hello
    World
    )
  3. Answer
    page.10.value = (
    HelloWorld
    )
  4. Answer
    page.10.value = (Hello
    World)
  5. Answer
    page.10.value (Hello
    World
    )
A

Therefore, the correct answer is 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

8.1.4 It is possible to comment out lines in TypoScript. Which characters can be used as comment characters? (4)

  1. //
  2. /* … */
  3. #
  4. /
    5.
A

Therefore, the correct answers are 1, 2, 3 and 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

8.2.1 What do you enter in the constants area to make the following TypoScript setup code functional? (1)

config. language = {$langKey}
config. sys_language_uid = 1
config. htmlTag_langKey = {$langKey}

  1. $langKey = de
  2. {$langkey = en}
  3. langKey = jp
  4. langkey = cn
  5. LANGKEY = at
A

Therefore, the correct answer is 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

8.2.2 What is the function of the following TypoScript code? (1)

page. meta.DESCRIPTION = {$meta.description}
page. meta.DESCRIPTION.override.field = description

  1. The value of field description is used.
  2. If the description field contains no value, the corresponding constant is used.
  3. The description field is always overwritten by the value of the corresponding constant.
  4. The value of the constant is used.
A

Therfore, the correct answer is 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

8.2.3 The Fluid template of the page.10 object contains a variable {emailaddress}, which needs to be replaced by the value foo. How can you achieve this? (1)

  1. You enter the following code in the TypoScript constant area:
    page. 10.templates.placeholder.emailaddress = TEXT
    page. 10.templates.placeholder.emailaddress.value = foo
  2. You enter the following code in the TypoScript setup area:
    page. 10.templates.placeholder.emailaddress = TEXT
    page. 10.templates.placeholder.emailaddress.value = foo
  3. You enter the following code in the TypoScript setup area:
    page. 10.templates.variables = EMAIL
    page. 10.templates.variables.address = foo
  4. You enter the following code in the TypoScript constant area:
    page. 10.variables.emailaddress = TEXT
    page. 10.variables.emailaddress.value = foo
  5. You enter the following code in the TypoScript setup area:
    page. 10.variables.emailaddress = TEXT
    page. 10.variables.emailaddress.value = foo
A

Therefore, the correct answer is 5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

8.3.1 What is the output produced by the following TypoScript code? (1)

page = PAGE
page.10 = COA
page.10 {
    30 = TEXT
    30.value = A
    30.wrap = B|C
    40 = HTML
    40.value = D
    40.wrap = E|F
    20 < .30
    40.value = G
}
  1. BACEGF
  2. DBACD
  3. DBACG
  4. EDFBACEGF
  5. DBACEGF
  6. DBACEDF
  7. BACBAC
A

Therefore, the correct answer is 7.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

8.3.2 What is the output produced by this TypoScript code? (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
}
  1. ABCD
  2. ABCD
  3. BDCAAB
  4. ABCADB
  5. BDCAB
  6. DBCAB
A

Therefore, the correct answer is 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

8.3.3 What is the output produced by this TypoScript code? (1)

temp.text1 = TEXT
temp.text1.value = Certification
page = PAGE
page.10 =< temp.text1
temp.text1.wrap = TYPO3-|!

  1. Certification
  2. TYPO3-!
  3. TYPO3-Certification!
  4. There is no output.
  5. !
A

Therefore, the correct answer is 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

8.3.4 What is the output produced by the following TypoScript code? (1)

object1 = TEXT
object1.value = value1
page = PAGE
page {
    10 <= object1
    15 < object1
    15.value = -
    20 < object1
}
object1.value = value3
  1. value1
  2. -value1
  3. value1-value1
  4. value1-value3
  5. value3-value1
A

Therefore, the correct answer is 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

8.3.5 What code do you enter in place of the question marks so that the output of the script is AB? (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
???
}

  1. 10.value = B
  2. 10.10.value = B
  3. 10.20.value = B
  4. 10.10.20.value = B
  5. 10.10.20.10.value = B
  6. 10.10.10.20.value = B
A

Therefore, the correct answer is 5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

8.4.1 A condition begins with square brackets. Which expression does it have to end in? (6)

  1. [GLOBAL]
  2. [global]
  3. [Global]
  4. [END]
  5. [end]
  6. [End]
  7. []
A

Therefore, the correct answers are 1, 2, 3, 4, 5 and 6.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

8.4.2 In which areas can you use conditions? (4)

  1. TypoScript constants.
  2. TypoScript setup.
  3. Page TSconfig.
  4. User TSconfig.
  5. Fluid template.
A

Therefore, the correct answers are 1, 2, 3 and 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

8.4.3 Is it possible to deactivate conditions in PageTSconfig and UserTSconfig? (1)

  1. No, conditions are part of the core, so they cannot be deactivated for TSconfig.
  2. Yes, by using the TypoScript instruction
    config.TSconfigConditions = 0
  3. Yes, by using the PageTSconfig instruction
    config.TSconfigConditions = 0
  4. Yes, by using the following key in the Install Tool:
    [BE][TSconfigConditions] = 0
  5. Yes, by selecting the Use TSconfigConditions checkbox in the user settings
A

Therefore, the correct answer is 1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

8.4.4 Is it possible to check the backend_layout field in the backend, and if so, how? (1)

  1. No, that is not possible. Page properties are only relevant in the frontend and are checked there
    by TypoScript.
  2. [globalVar = TSFE:current|backend_layout = 1]
  3. [globalVar = TSFE:this|backend_layout = 1]
  4. [globalVar = TSFE:page|backend_layout = 1]
  5. [TSFE|backend_layout = 1]
  6. [this|backend_layout = 1]
  7. [page|backend_layout = 1]
  8. [current|backend_layout = 1]
A

Therefore, the correct answer is 7.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

8.4.5 Which condition can you use to check whether a frontend user is logged in? (1)

  1. [login = true]
  2. [!login = false]
  3. [loginUser = *]
  4. [user = login]
  5. [loginUser = true]
  6. [login = *]
A

Therefore, the correct answers are 2 and 5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

8.4.6 Which conditions allow you to determine in the frontend, if the current user is also logged-in at the backend at the same time? (1)

  1. [globalVar = TSFE : beUserLogin > 0]
  2. [BEloginUser = *]
  3. [getTSFE()[‘beUserLogin’] == 1]
  4. [getTSFE().beUserLogin == 1]
  5. [TSFE:beUser > 0]
A

Therefore, the correct answers are 1 und 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

8.4.7 Which condition can you use to check if the current time is 2pm or later? (1)

  1. [time >= 18]
  2. [time() > 18]
  3. [time(“18”)]
  4. [date(“G”) >= 18]
  5. [hour >= 18]
  6. [hour = > 18]
  7. [hour() > 18]
A

Therefore, the correct answer is 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

8.4.8 Which conditions can you use to check if the user’s IP address is not 217.112.17.89? (1)

  1. [IP != 217.112.17.89]
  2. [not (getenv(“REMOTE_ADDR”) matches “/217.112.17.89/”)]
  3. [is(“REMOTE_ADDR”) != “217.112.17.89”]
  4. [getenv(“REMOTE_ADDR”) != “217.112.17.89”]
  5. [IP NOT 217.112.17.89]
  6. [IP = 217.112.17.89] [else]
  7. [IP == 217.112.17.89] [else]
A

Therefore, the correct answers are 2, 4 and 6.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

8.4.9 Which of the following conditions have the correct syntax? (6)

  1. [language = *de][language = *en]
  2. [language = *de]or[language = *en]
  3. [language = *de]OR[language = *en]
  4. [language = *de]NOT[language = *en]
  5. [language = *de]||[language = *en]
  6. [language = *de]AnD[language = *en]
  7. [language = *de]&[language = *en]
  8. [language = *de]&&[language = *en]
A

Therefore, the correct answer are 1, 2, 3, 5, 6 and 8.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

8.4.10 Which condition would you use to check whether the current day is Christmas Eve? (1)

  1. This is not possible; Christmas Eve falls on a different day of the week every year.
  2. This can only be achieved by implementing a custom condition.
  3. [dayofmonth = 24]AND[dayofweek = 12]
  4. [dayofmonth = 24]AND[month = 12]
  5. [day = 24]AND[month = 12]
A

Therefore, the correct answer is 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

8.5.1 What does [20.h] stand for in the following TypoScript code? (1)

lib.getPageTitle = IMAGE
lib.getPageTitle.altText.field = title
lib.getPageTitle.file = GIFBUILDER
lib.getPageTitle.file {
XY = 400,[10.h]+[20.h]+20
10 = TEXT
10.text.field = title
10.text.listNum.splitChar = |
10.text.listNum = 0
10.fontSize = 20
10.fontColor = #cc0000
10.offset = 0,24
10.niceText = 1
20 < .10
20.text.listNum = 1
20.offset = 0,24+[10.h]+6
}

  1. A width of 20 pixels.
  2. A height of 20 pixels.
  3. The value of the constant called h.
  4. The height of the text field, which is defined in 20.
  5. An offset of 20 pixels in height.
  6. A font height of 20 pixels.
A

Therefore, the correct answer is 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

8.5.2 Is it possible to select any font in images that contain text and are created using the GIFBUILDER? (2)

  1. Yes, but you have to select one of the 20 fonts supplied along with TYPO3.
  2. Yes, you can use a font from any font file with the TTF format (TrueType fonts).
  3. Yes, you can use a font from any font file with the OTF format (OpenType fonts).
  4. Yes, you can use a font from any font file with the CTF format (ClearType fonts).
  5. Yes, you can use a font from any font file with the PFM/PFB format (Type 1 fonts).
  6. No, you have to use an extension to do this.
  7. No, it is not possible.
A

Therefore, the correct answers are 2 and 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

8.5.3 What does the c in the width and height specifications stand for in the following TypoScript code? (1)

page = PAGE

page. 10 = IMAGE
page. 10.file = testimage.jpg
page. 10.file.width = 100c+100
page. 10.file.height = 100c

  1. Calculated
  2. Crop
  3. Constant
  4. Clear
  5. Continuous
A

Therefore, the correct answer is 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

8.6.1 Which TypoScript objects have to be addressed so that contents from tt_content can be returned? (2)

  1. PAGE
  2. TEMPLATE
  3. CONTENT
  4. CONFIG
  5. META
  6. TEXT
  7. USER
A

Therefore, the correct answers are 1 and 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

8.6.2 This next code fills position 10 of a register with the value of the layout field of the current page. How can you return to querying this value at position 20 instead of the question marks? (2)

10 = LOAD_REGISTER
10.layout.cObject = TEXT
10.layout.cObject.data = TSFE:layout
20 = TEXT
20.???
  1. insertData = {register:layout}
  2. data = {register:layout}
  3. data = register:layout
  4. dataWrap = {register:layout}
  5. data = {$layout}
  6. data = {layout}
  7. data = layout
A

Therefore, the correct answers are 3 and 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

8.6.3 Which content object needs to replace the question marks in the following code to display the current time on the website? (1)

page = PAGE
page.10 = ???
page.10 {
    10 = TEXT
    10.data = date:U
    10.strftime = %D - %H:%M:%S
}
  1. USER
  2. USER_INT
  3. COA
  4. COA_INT
  5. TIME
  6. TEXT
  7. TEXT_INT
A

Therefore, the correct answer is 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

8.6.4 You want to use TypoScript to specify a background image. Which content element needs to replace the question marks in the following code? (1)

page = PAGE
page.10 = ???
page.10 {
    file = fileadmin/backgroundimg.jpg
    file.width = 100
    file.height = 100
    stdWrap.wrap = <div style="width:100px;height:100px;">Te\
    xt</div>
}
  1. IMG
  2. IMAGE
  3. IMG_RESOURCE
  4. IMAGE_RESOURCE
  5. GIFBUILDER
A

Therefore, the correct answer is 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

8.6.5 You want the output of a TEXT content object to be multilingual. What do you need to do? (1)

page = PAGE

page. 10 = TEXT
page. 10.value = English Text

  1. You add the following: page.10._LOCAL_LANG.de = Deutscher Text.
  2. You add the following: page.10.lang.de = Deutscher Text.
  3. You add the following: page.10.de = Deutscher Text.
  4. Using the xml_ll extension is a convenient way of translating the language labels.
  5. Translations have to be created by means of conditions, for example: [globalVar = GP:L = 1]
A

Therefore, the correct answer is 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

8.6.6 You want to display the content elements of a page in random order. Is this possible, and if so, how? (1)

page = PAGE
page.10 = CONTENT
page.10 {
        table = tt_content
        select {
        where = colPos = 0
        max = 1
        ???
    }
}
  1. That is not possible. Content elements are always displayed in the sequence specified in the backend.
  2. You have to use an special extension to do this.
  3. You replace the question marks with the following line:
    orderBy = random
  4. You replace the question marks with the following line:
    orderBy = rand()
  5. You replace the question marks with the following line:
    orderBy = rand
A

Therefore, the correct answer is 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

8.6.7 From what page does the following script read out the content elements? (1)

page = PAGE
page.10 = CONTENT
page.10 {
    table = tt_content
    select {
        pidInList = this
    }
}
  1. The content elements from the page with the identifier this.
  2. The content elements of the current page.
  3. The content elements from the page stored in the register called this.
  4. The content elements from the page whose PID is the value of the UID of the current page.
  5. The content elements from the page with PID = 0, because there is no such thing as a key word called this and TypoScript interprets this as value 0.
A

Therefore, the correct answer is 2.

33
Q

8.6.8 What is the output of the following code? (1)

page = PAGE
page.10 = CONTENT
page.10 {
    table = tt_content
    select {
        pidInList = 2,3,4
    }
}
  1. It creates a menu from the pages with the UIDs 2, 3 and 4.
  2. It displays the contents with the UIDs 2, 3 and 4.
  3. It displays all the contents of the pages with the UIDs 2, 3 and 4.
  4. It displays all contents apart from those with the UIDs 2, 3 and 4.
A

Therefore, the correct answer is 3.

34
Q

8.6.9 You want to display the data records from the tt_content table that have the UIDs 2 and 3. What should be in place of the question marks? (1)

page = PAGE
page.10 = ???
page.10 {
    tables = tt_content
    source = 2,3
    dontCheckPid = 1
}
  1. TEXT
  2. HTML
  3. COA
  4. RECORDS
  5. DATA
  6. CONTENT
A

Therefore, the correct answer is 4.

35
Q

8.6.10 When entering a content element, you can use the “Frame” select box to select a frame. What should be in place of the question marks if you want to enter your own style instructions when entering “Frame 1” (ID=20) and “Frame 2” (ID=21)? (1)

temp.bodytext = ???
temp.bodytext {
key.field = section_frame
default < tt_content.text.20
20 < .default
20.wrap = <div class="dotted">|</div>
21 < .default
21.wrap = <div class="solid">|</div>
}
tt_content.text.20 >
tt_content.text.20 < temp.bodytext

  1. TEXT
  2. HTML
  3. CASE
  4. RECORDS
  5. LOAD_REGISTER
  6. CONTENT
A

Therefore, the correct answer is 3.

36
Q

8.7.1 You see CType=list and list_type=9 (the tt_news extension). How do you address the body text of the output? (2)

  1. plugin.tt_news
  2. plugin.tx_ttnews_pi1
  3. plugin.tx_ttnews_pi1.9
  4. tt_content.list.9
  5. tt_content.plugin.9
  6. tt_content.plugin.tt_news
  7. tt_content.list.10.9
  8. tt_content.list.20.9
A

Therefore, the correct answers are 1 and 8.

37
Q

8.7.2 Replace ??? in the code below, so that a specific strings is automatically replaced by another string in the output of the tt_content text content? (1)

tt_content.text.20 {
???
}

  1. parseFunc.string1 = string2
  2. parseFunc.short.string1 = string2
  3. parseFunc.tags.string1 = string2
  4. string1 = string2
  5. HTMLparser.string1 = string2
  6. HTMLparser.replace.string1 = string2
A

Therefore, the correct answer is 2.

38
Q

8.7.3 Subtitles in the backend form of a page can only be entered in one line. What do you need to do so that you can enter them in multiple lines? (1)

  1. This is not possible without modifying the TYPO3 core.
  2. You overwrite the default TCA by using the following PHP code:
    $GLOBALS[‘TCA’][‘pages’][‘columns’][‘subtitle’][‘config’][‘type’] = ‘text’;
  3. You enter the following code in Page TSconfig:
    TCEFORM.pages.columns.subtitle.config.type = text
  4. You enter the following code in User TSconfig:
    TCAdefaults.pages.subtitle.config.type = text
  5. You enter the following code in the TypoScript setup:
    pages.columns.subtitle.config.type = text
  6. You enter the following code in the TypoScript setup:
    pages.subtitle.config.type = text
A

Therefore, the correct answer is 2.

39
Q

8.7.4 Which TypoScript code element do you use to display email addresses in the frontend in a manner that makes it hard for robots to read for spam purposes? (1)

  1. config.spam.email = 0
  2. config.spamProtectEmailAddresses = 1
  3. config.email.usePicture = 1
  4. config.protectEmailAdresses = 0
A

Therefore, the correct answer is 2.

40
Q

8.7.5 You have added a content element of type “Bullet List” to a page, but you do not like the way it is displayed. How can you customize it, if the site is configured to use “Fluid Styled Content”? (2)

  1. The content element is a core function, so you have to modify the appropriate core files directly.
  2. Bullet point lists can not be customized to preserve a consistent look and feel across all TYPO3 sites.
  3. You can modify the tt_content.bullets TypoScript object, if “Fluid Styled Content” is used.
  4. You can modify the tt_content.bulletlist TypoScript object, if “Fluid Styled Content” is used.
  5. You can use CSS to customize the appearance of the ce-bullets class, if “Fluid Styled Content”
    is used.
A

Therefore, the correct answers are 3 and 5.

41
Q

8.8.1 Which of the following are not menu states? (2)

  1. IFSUBRO
  2. CUR
  3. USR
  4. NOIFSUB
  5. ACTSUB
  6. SPC
A

Therefore, the correct answers are 4 and 5.

42
Q

8.8.2 You need a format for the display of the menu item for the current page if it contains at least one subpage. Which menu state do you use? (1)

  1. NO
  2. CUR
  3. CURIFSUB
  4. ACT
  5. ACTIFSUB
A

Therefore, the correct answer is 3.

43
Q

8.8.3 You want to format the display of the menu item for the current page and the parent pages, regardless of whether subpages exist. Which menu state do you use? (1)

  1. NO
  2. CUR
  3. CURIFSUB
  4. ACT
  5. ACTIFSUB
A

Therefore, the correct answer is 4.

44
Q

8.8.4 Which menu state can you use to indicate pages if access to them is restricted to user groups where the group name begins with the letters A-K? (2)

  1. NO
  2. USERDEF1
  3. USERDEF2
  4. CUR
  5. CURIFSUB
  6. ACT
  7. ACTIFSUB
A

Therefore, the correct answers are 2 and 3.

45
Q

8.8.5 A menu does not need to contain a link to the current page; in fact, this is often confusing or wrong. How can you prevent this? (1)

  1. By using the NOLINK menu state.
  2. By using the doNotLinkIt TypoScript option.
  3. By using an appropriate condition.
  4. You set the NeverLinkCurrentPage property in the Install Tool.
  5. You have to write a custom PHP function.
A

Therefore, the correct answer is 2.

46
Q

8.8.6 We have pages “A” (UID = 179) and “B” (UID = 178). What is the output of the following menu? (1)

page = PAGE

page. 10 = HMENU
page. 10.special = list
page. 10.special.value = 178,179
page. 10.1 = TMENU
page. 10.1.NO.after = ||||-

  1. A-B
  2. B-A
  3. -A-B
  4. -B-A
  5. AB
  6. BA
  7. A-B
  8. B-A-
A

Therefore, the correct answer is 8.

47
Q

8.8.7 What do you need to add to the following TypoScript code to obtain a JavaScript pull-down menu of all pages that were changed in the last three days? (1)

page = PAGE
page.10 = HMENU
page.10 {
    ???
    special.value = 1
    special.mode = tstamp
    special.maxAge = 3600*24*3
    limit=10
    1 = JSMENU
    1.target=_top
    1.firstLabelGeneral = Select your page
}
  1. menu = javascript
  2. special = jsmenu
  3. special = updated
  4. special.menu = last
  5. menu = last
  6. menu = updated
A

Therefore, the correct answer is 3.

48
Q

8.8.8 Which value do you have to assign to the entryLevel option if you want to display only the subpages in the menu and not the current page? (1)

Root
    Home
    A
        AA
        AB
    B
        BA
        BB
        BC
    C
page = PAGE
page.10 = HEMNU
page.10 {
    entryLevel = ???
    1 = TMENU
    1 {
        expAll = 1
        NO = 1
    }
    2 < .1
}
  1. Value 2
  2. Value 1
  3. Value 0
  4. Value -1
  5. Value -2
A

Therefore, the correct answer is 4.

49
Q

8.8.9 How can you prevent a page from being displayed in a menu? (2)

  1. You use the “Not in menu” page type.
  2. You use the “Hide in menu” page property.
  3. You use the TypoScript property excludeUidList.
  4. You use the TypoScript property hideInMenu.
  5. You use the TypoScript property includeNotInMenu.
A

Therefore, the correct answers are 2 and 3.

50
Q

8.9.1 Your website has five pages “A”, “B”, “C”, “D” and “E”. What is the output of the following TypoScript code? (1)

page = PAGE

page. 10 = HMENU
page. 10.1 = TMENU
page. 10.1.NO.linkWrap = 1 || 2 || 3
page. 10.1.NO.allWrap = |

  1. 1A1 1B1 1C1 2D2 3E3
  2. 1A1 2B2 2C2 2D2 3E3
  3. 1A 1B 1C 2D 3E
  4. 1A 2B 3C 3D 3E
  5. 1A 2B 2C 2D 3E
A

Therefore, the correct answer is 5.

51
Q

8.9.2 Your website has only one page “A”. What is the output of the following TypoScript code? (1)

page = PAGE

page. 10 = HMENU
page. 10.1 = TMENU
page. 10.1.NO.linkWrap = 1 || 2 || 3
page. 10.1.NO.allWrap = |

  1. 1A
  2. 2A
  3. 3A
  4. 1A 2A 3A
  5. 3A 1A 2A
A

Therefore, the correct answer is 3.

52
Q

8.9.3 Your website has five pages “A”, “B”, “C”, “D” and “E”. What is the output of the following TypoScript code? (1)

page = PAGE

page. 10 = HMENU
page. 10.1 = TMENU
page. 10.1.NO.linkWrap = 1 |||| 2
page. 10.1.NO.allWrap = |

  1. 1A 2B 1C 2D 1E
  2. 1A 1B 1C 1D 2E
  3. 1A 2B 2C 2D 2E
  4. 1A 2B 1C 2D 2E
A

Therefore, the correct answer is 2.

53
Q

8.9.4 Your website has five pages “A”, “B”, “C”, “D” and “E”. What is the output of the following TypoScript code? (1)

page = PAGE

page. 10 = HMENU
page. 10.1 = TMENU
page. 10.1.NO.linkWrap = 1 || 2||3 || 4
page. 10.1.NO.allWrap = |

  1. 1A 2B 3C 2D 4E
  2. 4A 2B 2C 3D 1E
  3. 1A 2B 2C 3D 4E
  4. 1A 2B 3C 3D 4E
A

Therefore, the correct answer is 1.

54
Q

8.9.5 Your website has five pages “A”, “B”, “C”, “D” and “E”. What is the output of the following TypoScript code? (1)

page = PAGE

page. 10 = HMENU
page. 10.1 = TMENU
page. 10.1.NO.linkWrap = 1||2 || 3 || 4
page. 10.1.NO.allWrap = |

  1. 1A 2B 1C 3D 4E
  2. 1A 2B 3C 3D 4E
  3. 1A 2B 1C 2D 3E
  4. 1A 2B 2C 3D 4E
A

Therefore, the correct answer is 2.

55
Q

8.9.6 Your website has five pages “A”, “B”, “C”, “D” and “E”. What is the output of the following TypoScript code? (1)

page = PAGE

page. 10 = HMENU
page. 10.1 = TMENU
page. 10.1.NO.linkWrap = 1||2 |||| 3
page. 10.1.NO.allWrap = |

  1. 1A 2B 1C 1D 3E
  2. 1A 2B 3C 1D 2E
  3. 1A 2B 2C 2D 3E
  4. 1A 2B 3C 3D 3E
  5. 2A 2B 2C 2D 3E
A

Therefore, the correct answer is 3.

56
Q

8.9.7 Your website has five pages “A”, “B”, “C”, “D” and “E”. What is the output of the following TypoScript code? (1)

page = PAGE

page. 10 = HMENU
page. 10.1 = TMENU
page. 10.1.NO.linkWrap = |||| 1||2||3
page. 10.1.NO.allWrap = |

  1. 1A 2B 3C 1D 2E
  2. 1A 2B 3C 3D 3E
  3. 1A 1B 1C 2D 3E
  4. 1A 2B 1C 2D 3E
A

Therefore, the correct answer is 3.

57
Q

8.10.1 You change a setting in the TypoScript Object Browser Where is this change entered? (2)

  1. At the beginning of the TypoScript “setup” template.
  2. At the end of the TypoScript “setup” template.
  3. At the beginning of the TypoScript “constant” template.
  4. At the end of the TypoScript “constant” template.
  5. In the LocalConfiguration.php file.
  6. None of the above answers is correct.
A

Therefore, the correct answers are 2 and 4.

58
Q

8.10.2 Your TypoScript code obviously contains a syntax error. How can you find it? (2)

  1. The error is displayed in the TypoScript Object Browser (TSOB).
  2. The error is displayed in the Admin Panel.
  3. The error is displayed in the Template Analyzer.
  4. The error is displayed in the frontend.
A

Therefore, the correct answers are 1 and 3.

59
Q

8.10.3 What is the precise effect of the following two lines of TypoScript code in the constants area? (2)

# cat=mytext/ctext/a; type=color; label=text color
mytextcolor = red
  1. The first line is ignored because it is introduced with a comment character.
  2. The mytextcolor constant is set to red.
  3. A selection field for colors is created in the Constant Editor.
  4. This code results in an error message.
  5. This code has no effect.
A

Therefore, the correct answers are 2 and 3.

60
Q

8.11.1 You create a page with UID 76, an empty navigation title and the title “Test page”. What is the output created by the following script? (1)

page = PAGE

page. 10 = TEXT
page. 10.value = Certification
page. 10.data = field:nav_title // field:uid // field:title

  1. Certification
  2. Certification76Test page
  3. 76
  4. Test page 76Test page
A

Therefore, the correct answer is 3.

61
Q

8.11.2 How can you use TypoScript to determine the name of the frontend user who is logged in? (1)

  1. {field:name}
  2. ${fe_user->name}
  3. TSFE:fe_user|user|name
  4. $TSFE->fe_user->user->name
  5. getIndpEnv:name
  6. TSFE[fe_user][user][name]
  7. $GLOBALS[‘TSFE’]->fe_user->user[‘name’]
A

Therefore, the correct answer is 3.

62
Q

8.11.3 What is the output of the following TypoScript? (1)

page = PAGE

page. 10 = TEXT
page. 10.value.data = DB:pages:11:title

  1. There is no output.
  2. The output is DB:pages:11:title.
  3. The output is DB pages:11 title.
  4. The output consists of the page title of the page with the UID 11.
  5. The output consists of the table cell with UID 11 from the pages table.
  6. This TypoScript does not create any output, but it saves the data record of the page with UID 11 in a register for use later on.
A

Therefore, the correct answer is 4.

63
Q

8.11.4 You want the page title of the current page to be output. What do you need to add to the script below? (1)

page = PAGE
page {
    10 = TEXT
    10.value = The page title of the current page is: {page:title}
    ???
}
  1. 10.wrap = $|$
  2. You do not need to add anything for the output to be right.
  3. 10.dataWrap = {field:title}
  4. 10.insertData = 1
  5. 10.dataWrap = 1
A

Therefore, the correct answer is 4.

64
Q

8.11.5 What do you have to add to the script below so that the complete URL is output? (1)

page = PAGE
page {
    10 = TEXT
    10.data = ???
}
  1. TYPO3_REQUEST_URL
  2. getIndpEnv:TYPO3_REQUEST_URL
  3. {getIndpEnv:TYPO3_REQUEST_URL}
  4. ${TYPO3_REQUEST_URL}
  5. TSFE:TYPO3|REQUEST_URL
A

Therefore, the correct answer is 2.

65
Q

8.11.6 What code is required in place of the question marks in order to achieve the output of all important properties of the current page and the parent pages (such as UID, PID, title, etc.)? (1)

page = PAGE

page. 10 = TEXT
page. 10.value = TypoScript
page. 10.???

  1. data = debug : rootLine
  2. data = debug : -1
  3. debugData = 1
  4. data.debug = rootLine
  5. debugData = rootline
  6. data.debugData = 1
A

Therefore, the correct answer is 1.

66
Q

8.11.7 What do you have to enter in place of the question marks so that the page title of the current page is output?(1)

page = PAGE
page.10 = TEXT
page.10 {
    dataWrap = DB:pages:{TSFE:id}:title
    ??? = <h1>Page title: {|}</h1>
    insertData = 1
}
  1. data
  2. wrap
  3. innerWrap
  4. wrap3
  5. stdWrap
A

Therefore, the correct answer is 4.

67
Q

8.12.1 Is there a specific sequence in which stdWrap properties are executed in a TypoScript template? (1)

  1. The property that is listed first is executed first.
  2. The property that is listed first is executed last.
  3. The property whose name is first in alphabetical order is executed first.
  4. The order is determined by the order in the source code.
  5. No, there is no order.
A

Therefore, the correct answer is 4.

68
Q

8.12.2 What is the output of the following script if the subtitle field of the page has the value test23? (1)

page = PAGE
page.10 = TEXT
page.10.value = Hello World!
page.10.if {
    value.field = subtitle
    equals = test23
}
  1. test23
  2. Hello World!
  3. Hello World!test23
  4. subtitle
  5. There is no output.
A

Therefore, the correct answer is 2.

69
Q

8.12.3 What do you have to enter in place of the question marks so that the name of the author is added? (1)

page = PAGE
page.10 = TEXT
page.10 {
    ???
    insertData = 1
    typolink.parameter.field = author_email
}
  1. value = Author: author
  2. value = Author: {$page:$author}
  3. value = Author: {page:author}
  4. value = Author: {$author}
  5. value = Author: page:author
  6. value = Author: $author
A

Therefore, the correct answer is 3.

70
Q

8.12.4 What is the output of the following TypoScript code? (2)

page = PAGE
page {
    10 = TEXT
    10.value = Certification
    10.override {
        required = 1
        data = field:subtitle // field:nav_title
    }
}
  1. The output is Certification, if field:subtitle and field:nav_title are both empty.
  2. The output is Certification, if field:subtitle and field:nav_title both contain values.
  3. The output is Certification, if field:subtitle is empty, but field:nav_title contains a value.
  4. The output is Certification, if field:subtitle contains a value and field:nav_title is empty.
  5. The subtitle is shown, if field:subtitle contains a value, but field:nav_title is empty.
  6. The navigation title is shown, if field:subtitle and field:nav_title both contain values.
A

Therefore, the correct answers are 1 and 5.

71
Q

8.12.5 The following TypoScript code returns a page title. What exactly is it? (1)

page = PAGE

page. 10 = TEXT
page. 10.data = fullRootLine : 0, title

  1. The page title of the current page is output.
  2. The page title of the parent page is output.
  3. There is no output.
  4. The page title of the root page is output.
A

Therefore, the correct answer is 4.

72
Q

8.12.6 What is the page whose navigation title is returned in the following TypoScript code? (2)

page = PAGE

page. 10 = TEXT
page. 10.data = levelfield:-2, nav_title, slide

  1. The navigation title of the current page is output.
  2. The navigation title of the root page is output.
  3. The navigation title of the parent page is output.
  4. The navigation title of the parent page’s parent page is output.
  5. If the page to be output has no navigation title, the system will search upwards along the root line until it finds a page with a navigation title, and then output this title.
  6. If the page to be output has no navigation title, the title of the root page is used, along with all titles along the root line (if any exist).
A

Therefore, the correct answers are 3 and 5.

73
Q

8.12.7 The following code creates a link to a page. To which page does it link to? (1)

page= PAGE
page.10 = COA
page.10 {
    10 = TEXT
    10 {
        value = page: {leveltitle:-1}
        insertData = 1
        typolink.parameter.data = leveluid : -1
    }
}
  1. To the current page.
  2. To the parent page.
  3. To the sister page.
  4. To the subpage.
  5. To the root page.
A

Therefore, the correct answer is 1.

74
Q
  1. 12.8 Your TypoScript code contains a default image in the
    temp. stdimage object and the user can upload an image in the backend, which is saved in the temp.userimage object. What do you have to enter so that the default image is displayed if the user has not uploaded an own image? (1)
page = PAGE
page.10 = COA
page.10 {
    ???
}
1. Answer
    10 < temp.stdimage
    20 < temp.userimage
2. Answer
    10 < temp.userimage
    20 < temp.stdimage
3. Answer
    10 < temp.userimage
    20.stdWrap.ifEmpty.cObject < temp.stdimage
4. Answer
    10 < temp.userimage
    10.stdWrap.ifEmpty.cObject < temp.stdimage
5. Answer
    10 < temp.stdimage
    20.ifEmpty.cObject < temp.userimage
6. Answer
    10 < temp.userimage
    stdWrap.if.isTrue.cObject < temp.stdimage
A

Therefore, the correct answer is 4.

75
Q

8.12.9 You want the following TypoScript code to display text “Print version”, but only if the website is called using the print=1 GET parameter. What should be in place of the
question marks? (1)

page = PAGE
page.10 = TEXT
page.10 {
    value = Print version
    ???
} 
  1. You do not need to add anything, the function is already provided.
  2. Answer
    if. isTrue.data = GP : print
  3. Answer
    if. value.data = GP : print
    if. equals = 1
  4. Answer
    if. isPositive.data = GP : print
  5. Answer
    if. value.data = GP : print
    if. isGreaterThan = 2
    if. isTrue.data = GP : print
A

Therefore, the correct answer is 3.

76
Q

8.12.10 How can you create a link with link text, a link target and a CSS class? (2)

page = PAGE
page.10 = TEXT
page.10 {
    value = linktext
    ???
}
  1. This is not possible without a corresponding HTML template in TYPO3.
  2. The following:
    typolink.parameter = http://example.com/
    typolink.parameter.extTarget = linktarget
    typolink.parameter.ATagParams = class=’linkclass’
  3. The following:
    typolink.parameter = http://example.com/
    typolink.extTarget = linktarget
    typolink.ATagParams = class=’linkclass’
  4. The following:
    typolink.parameter = example.com linktarget linkclass
  5. The following:
    typolink = example.com linktarget linkclass
A

Therefore, the correct answers are 3 and 4.

77
Q

8.12.11 You want to link to an image. When the image is clicked, you want a new page with UID = 123 to be opened in a 350x700 pixel window. How can you do this? (1)

page = PAGE
page.10 = IMAGE
page.10 {
    file = fileadmin/example.jpg
    ???
}
  1. Answer
    typolink.parameter = 123 350x700
  2. Answer
    stdWrap.typolink.parameter = 123 350x700
  3. Answer
    typolink.parameter = 123
    typolink.JSwindow_params = width=350,height=700
  4. Answer
    stdWrap.typolink.parameter = 123
    stdWrap.typolink.JSwindow_params = width=350,height=700
  5. Answer
    typolink.popup = 1
    typolink.popup.params = 123 350x700
  6. Answer
    stdWrap.typolink.popup = 1
    stdWrap.typolink.popup.params = 123 350x700
A

Therefore, the correct answer is 2.

78
Q

8.12.12 The TypoScript code below is supposed to convert a Unix time stamp to a more readable form. What do you have to write in place of the question marks? (1)

page = PAGE

page. 10 = TEXT
page. 10.value = 1226923200
page. 10.??? = %A, %d.%B %Y

  1. strftime
  2. date
  3. prioriCalc.strftime
  4. mktime
  5. time
A

Therefore, the correct answer is 1.

79
Q

8.12.13 You want this TypoScript code section to output the
number of days that have elapsed since the TYPO3
certification program began. What do you have to write in
place of the question marks? (1)

page = PAGE
page.10 = COA_INT
page.10 {
    10 = TEXT
    10 {
        cObject = TEXT
        cObject.data = date:U
        cObject.wrap = (|-1226923200)/86400
        ???
        wrap = The certification has existed for | days
    }
}
  1. calc = intval
  2. calc = 1
  3. prioriCalc = intval
  4. exec = calc
  5. priori = calc
A

Therefore, the correct answer is 3.