Quiz
6. Typoscript (Part 4)
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)
1A condition in TypoScript starts with square brackets. Which of
the following items end a condition block? (5)- A[GLOBAL]
- B[global]
- C{global}
- D[END]
- E[end]
- F[End]
- G[]
2Replace ??? in the TypoScript code below to turn the word
“monster” into “unicorn” in the frontend if the constant princess is
set to a value greater than 10. (1)
page = PAGE
page.10 = TEXT
page.10.value = monster
???
page.10.value = unicorn
[end]- A[{$princess} > 10]
- B[TSFE:princess > 10]
- C[intval("{princess}") > 10]
- D[globalVar = LIT:10=princess]
- E[if(princess > 10) then monster = unicorn]
3How can you check if the backend_layout field is set to home in User
and Page TSconfig? (1)- A[globalVar = TSFE:current|backend_layout = "home"]
- B[globalVar = TSFE:page|backend_layout = "home"]
- C[current|backend_layout = "home"]
- D[page|backend_layout = "home"]
- E[page["backend_layout"] == "home"]
4Which TypoScript condition can you use to check if a frontend
user is currently logged in? (1)- A[login = true]
- B[loginUser('*')]
- C[loginUser = *]
- D[user = login]
- E[loginUser = true]
- F[login = *]
5Which TypoScript conditions can you use to check in the
frontend if the current user is logged-in at the backend? (2)- A[globalVar = TSFE:beUserLogin = 1]
- B[globalVar = backend.user.login.true]
- C[backend.user.isLoggedIn]
- D[frontend.user.isLoggedIn]
- E[backend.user.userId > 0]
6Which TypoScript condition can you use to check if the current
time is 6pm or later? (1)- A[time >= 18]
- B[time() > 18]
- C[time("18")]
- D[date("G") >= 18]
- E[hour >= 18]
7Which TypoScript conditions can you use to check if the user’s IP
address is not 123.44.55.66? (2)- A[IP = 123.44.55.66]
- B[ip("123.44.55.66")]
- C[getenv("REMOTE_ADDR") != "123.44.55.66"]
- D[not (getenv("REMOTE_ADDR") matches "/123\.44\.55\.66/")]
- E[getTSFE().remote["address"] != "123.44.55.66"]
- F[is("REMOTE_ADDR") != "123.44.55.66"]
8Replace ??? in the TypoScript code below to output “foobar” in the
frontend only if the TYPO3 version 11.5.20 is used and the
request originates from the IP address 123.45.67.89. (1)
page = PAGE
page.10 = TEXT
page.10.value = HELLO WORLD!
???
page.10.value = foobar
[end]- A[typo3.version == "11.5.20"] AND [ip("123.45.67.89")]
- B[typo3.version == "11.5.20" and ip("123.45.67.89")]
- C[typo3.version == "11.5.20" || ip("123.45.67.89")]
- D[typo3.branch == "11.5.20" && ip("123.45.67.89")]
- E[typo3.branch == "11.5.20"] && [ip("123.45.67.89")]
9Which functions can you use in a TypoScript condition to access
the host name requested by the client? (2)- AgetFrontend().getHostname()
- BgetRequest().getParams().getHostname()
- Crequest.getRemoteAddr()
- Dequest.getNormalizedParams().getHttpHost()
- Egetenv('HTTP_HOST')
- Fgetenv('REMOTE_ADDR')
10Which TypoScript configuration does TYPO3 provide by default to
render content? (1)- AThe top-level object page
- BThe top-level object core
- CThe top-level object styles
- DThe top-level object content
- EThe top-level object tt_content
11Replace ??? in the TypoScript code below to output “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
12Which TypoScript code element can you use to output email
addresses in the frontend in a way that makes it difficult for bots
to extract them for spam purposes? (1)- Aconfig.spam.email = 0
- Bconfig.spamProtectEmailAddresses = 1
- Cconfig.email.usePicture = 1
- Dconfig.protectEmailAdresses = 0
13Which standard TypoScript objects can you use to create,
manipulate, and/or output images in TYPO3? (2)- AThe cObject IMAGE
- BThe cObject IMAGEMAGICK
- CThe object type PNGBUILDER
- DThe object type GIFBUILDER
- EThe top-level objects GIF, PNG, and JPG
- FThe top-level object IMGMAP
14Which statements about the usage of fonts are correct if you use
TYPO3’s Gifbuilder? (2)- AYou can only select one of the 20 fonts supplied along with the TYPO3 Core
- BYou can use a font from any font file with the TTF format (TrueType fonts)
- CYou can use a font from any font file with the OTF format (OpenType fonts)
- DYou can use a font from any font file with the CTF format (ClearType fonts)
- EYou can use a font from any font file with the PFM/PFB format (Type 1 fonts)
- FDue to TYPO3’s open-source license, the font you use in the Gifbuilder must be free and open-source
too
15What does the character c in the width and height specification
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- ACalculated
- BCrop
- CConstant
- DClear
- EContinuous
16What 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
}- AA width of 20 pixels
- BA height of 20 pixels
- CThe value of the constant called h
- DThe height of the text field, which is defined at the index 20
- EAn offset of 20 pixels in height
- FA font height of 20 pixels
17Which statements about TypoScript menus are correct? (3)
- AHMENU is a content object (cObject)
- BAccess-restricted pages can’t be listed in a TMENU
- CCURRENT and CURIF are properties of common menu item states
- DNO, ACT, and SPC are properties of common menu item states
- ETYPO3 only supports hierarchical menus up to 16 levels depth
- FThe MenuProcessor utilizes HMENU to generate a menu that can be used in Fluid
18Which state can you use to format the menu item of the current
page if this page contains at least one subpage? (1)- AThe menu item state “NO”
- BThe menu item state “CUR”
- CThe menu item state “CURIFSUB”
- DThe menu item state “ACT”
- EThe menu item state “ACTIFSUB”
19Which state can you use to format all menu items including the
current page and its parent pages regardless of whether they
have subpages or not? (1)- AThe menu item state “NO”
- BThe menu item state “CUR”
- CThe menu item state “CURIFSUB”
- DThe menu item state “ACT”
- EThe menu item state “ACTIFSUB”
20Which menu state can you use to format menu links to pages if
they are access-restricted to user groups where the group name
starts with the letters A-K? (1)- AThe menu item state “NO”
- BThe menu item state “USERDEF1”
- CThe menu item state “CUR”
- DThe menu item state “CURIFSUB”
- EThe menu item state “ACT”
- FThe menu item state “ACTIFSUB”
Information
- Description
- TYPO3 Zertifikat TYPO3 CI 2022 Quiz on 6. Typoscript (Part 4), created by Angela Dudtkowski on 30/05/2022.
- Author
- Angela Dudtkowski
- Language
- Deutsch
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz