Quiz
6. Typoscript (Part 2)
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 (20)
1Replace “???” in the TypoScript code below so that the output of
the code 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
???
}- A10.value = B
- B10.10.value = B
- C10.20.value = B
- D10.10.20.value = B
- E10.10.20.10.value = B
- F10.10.10.20.value = B
2It is possible to comment out lines in TypoScript. Which
characters can be used as comment characters? (3)- A//
- B/* ... */
- C#
- D/
- E<!-- ... -->
- F{ ... }
3Given 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
4Which 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
- FLines starting with a square bracket “[” introduce TypoScript conditions
5Which of the following objects are not TypoScript top level
objects? (2)- Aconfig
- BTEXT
- Cstyles
- DTMENU
- EPAGE
- Fplugin
6Which statements about the TypoScript top level object config
are correct? (2)- ATYPO3 creates this object by default
- BThis object and all sub-objects and properties are read-only
- CYou can only modify the configuration of this object on the root page (ID: 0)
- DSubpages don’t inherit configurations of this object from their parent pages
- EThis object has properties such as baseURL, disableAllHeaderCode, and cache_period
- FThis object needs to be initialized on the root page (ID: 0) before it can be used on subpages
7Which statements about User and Page TSconfig are correct? (2)
- AProperties set in Page TSconfig are automatically also available on subpages
- BProperties set for administrator backend users in User TSconfig are automatically applied to all backend
users created by this administrator - CConstants entered in the “constants” textarea can be used in Page TSconfig
- DUser TSconfig is stored in the page properties on the root page (ID: 0)
- EUser TSconfig of the currently logged-in backend user can be reviewed in “System → Configuration”
8Which TypoScript code can you use to hide the table “pages” in
the “Web -> List” module? (1)- AThe following code in the Page TSconfig:
mod.web_list.hideTables = pages - BThe following code in the Page TSconfig:
mod.hide.tables = pages - CThe following code in the Page TSconfig:
RTE.config.pages.disabled = true - DThe following code in the User TSconfig:
config.tables.hide = pages - EThis is not possible, as the database table “pages” is a system table
- AThe following code in the Page TSconfig:
9Which top-level key lets you pre-configure settings in the “User
Settings” module by using User TSconfig? (1)- AThe key admPanel
- BThe key options
- CThe key auth
- DThe key setup
- EThe key mod
- FThe key user
10Which of the following User and Page TSconfig top-level keys
exist? (3)- AThe key mod in User TSconfig
- BThe key RTE in Page TSconfig
- CThe key web in Page TSconfig
- DThe key page in User TSconfig
- EThe key user in Page TSconfig
- FThe key TCEMAIN in Page TSconfig
- GThe key config in User TSconfig
11You created a page that received the page ID 42. You assigned the
page title “Test” and left the navigation title empty. What is the
output of the following TypoScript? (1)
page = PAGE
page.10 = TEXT
page.10.value = Certification
page.10.data = field:nav_title // field:uid // field:title- AThe output is:
Certification - BThe output is:
Certification76Test - CThe output is:
42 - DThe output is:
Test76Test
- AThe output is:
12Which TypoScript code can you use to determine the user name
of the frontend user who is currently logged in? (1)- AThe TypoScript code:
{field:username} - BThe TypoScript code:
${fe_user->username} - CThe TypoScript code:
TSFE:fe_user|user|username - DThe TypoScript code:
$TSFE->fe_user->user->username - EThe TypoScript code:
getIndpEnv:username - FThe TypoScript code:
TSFE[fe_user][user][username] - GThe TypoScript code:
$GLOBALS['TSFE']->fe_user->user['username']
- AThe TypoScript code:
13Given the following TypoScript code, what is the output at the
frontend? (1)
page = PAGE
page.10 = TEXT
page.10.value.data = DB:pages:23:title- AThis TypoScript code does not generate any output
- BThe output is the text DB:pages:23:title
- CThe output is the page title of the page with the ID 23
- DThe output is a list of up to 23 page titles
- EThe output is the site name, limited to 23 characters
14Replace “???” in the TypoScript code below to output the
sentence and the page title of the current page in the frontend.
(1)
page = PAGE
page {
10 = TEXT
10.value = The page title of the current page is: {page:title}
???
}- A10.wrap = $|$
- B10.dataWrap = {field:title}
- C10.insertData = 1
- D10.dataWrap = 1
15Replace “???” in the TypoScript code below to output the current
URL in the frontend. (1)
page = PAGE
page {
10 = TEXT
10.data = ???
}- ATYPO3_REQUEST_URL
- B{$TYPO3_REQUEST_URL}
- CTSFE:TYPO3|REQUEST_URL
- D{getIndpEnv:TYPO3_REQUEST_URL}
- EgetIndpEnv:TYPO3_REQUEST_URL
16Replace “???” in the TypoScript code below to output some basic
properties of the current page and parent pages in the frontend.
(1)
page = PAGE
page.10 = TEXT
page.10.value = TypoScript
page.10.???- Adata = debug : rootLine
- Bdata = debug : -1
- Cdata = debug : page
- Ddata.debug = rootLine
- EdebugData = rootline
17Replace “???” in the TypoScript code below to output the current
page title as a headline in the frontend. (1)
page = PAGE
page.10 = TEXT
page.10 {
dataWrap = DB:pages:{TSFE:id}:title
??? = <h1>{|}</h1>
insertData = 1
}- Adata
- Bwrap
- CinnerWrap
- Dwrap3
- EstdWrap
18The following TypoScript code outputs a page title in the
frontend. From which page exactly? (1)
page = PAGE
page.10 = TEXT
page.10.data = fullRootLine : 0, title- AThe output is always the page title of the current page
- BThe output is always the page title of the parent page
- CThe output is always the page title of the root page
- DThe TypoScript code does not produce any output
19The following TypoScript code outputs the navigation title of a
page. From which page exactly? (2)
page = PAGE
page.10 = TEXT
page.10.data = levelfield : -2, nav_title, slide- AThe output is the navigation title of the current page
- BThe output is the navigation title of the parent page (if this page exists)
- CThe output is the navigation title of the root page (if this page exists)
- DThe output is the navigation title of the page two levels up (if this page exists)
- EIf the page does not have a navigation title, TYPO3 searches upwards along the root line until it finds
a page with a navigation title - FIf the page does not have a navigation title, TYPO3 falls back to the root page and uses its navigation
title (if it exists)
20The following TypoScript code outputs a link in the frontend.
Which page is the link target? (1)
page = PAGE
page.10 = COA
page.10 {
10 = TEXT
10 {
value = {leveltitle : -1}
insertData = 1
typolink.parameter.data = leveluid : -1
}
}- AThe link target is the current page
- BThe link target is the parent page
- CThe link target is the first subpage of the current page
- DThe link target is the root page
Information
- Description
- TYPO3 Zertifikat TYPO3 CI 2022 Quiz on 6. Typoscript (Part 2), created by Angela Dudtkowski on 30/05/2022.
- Author
- Angela Dudtkowski
- Language
- Deutsch
- Views
- 1
- History
- Created on 30 May 2022 · updated on 30 May 2022
- Tags
- Rating
- No ratings yet Rate this quiz