Quiz
6. Typoscript (Part 5)
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 (14)
1Your TypoScript menu should include the current page as a menu
item but should not generate a link to it. How can you achieve
this? (1)- ABy using the NOLINK menu item state
- BBy using the doNotLinkIt property of the TMENUITEM object type
- CBy implementing a TypoScript condition
- DBy activating the NoLinkToCurrentPage option in the Install Tool
- EBy modifying the TYPO3 Core file typo3/sysext/core/pages/current/links.php
2Your TYPO3 site contains the pages “A” (page ID: 179) and “B”
(page ID: 178). What is the output of the following TypoScript
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 = |*||*|-- AA-B
- BB-A
- C-A-B
- D-B-A
- EAB
- FBA
- GB-A-
3Replace ??? in the TypoScript code below to make the variable
“mainnavigation” available in the Fluid template to output the
menu. (1)
page = PAGE
page {
typeNum = 0
10 = FLUIDTEMPLATE
10 {
...
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 {
levels = 1
includeSpacer = 1
???
}
}
}
}- Aobject = mainnavigation
- BobjName = mainnavigation
- Cvalue = mainnavigation
- Das = mainnavigation
4The following page tree and TypoScript code is given. Replace ???
in the TypoScript code below to only include the subpages in the
menu but not the current page? (1)
Root
│
├─── Home
│
├─┬─ A
│ ├─── AA
│ └─── AB
│
├─┬─ B
│ ├─── BA
│ ├─── BB
│ └─── BC
│
└─── C
page = PAGE
page.10 = HMENU
page.10 {
entryLevel = ???
1 = TMENU
1 {
expAll = 1
NO = 1
}
2 < .1
}- AValue 2
- BValue 1
- CValue 0
- DValue -1
- EValue -2
5How can you prevent a page from being displayed in a menu? (2)
- AYou set the page type to “Not in menu”
- BYou use the “Page enabled in menus” option in the page properties
- CYou use the TypoScript property excludeUidList
- DYou use the TypoScript property hideInMenu
- EYou use the TypoScript property includeNotInMenu
6Which values does the property special of the HMENU content
object support in TypoScript menus? (3)- Aspecial = files
- Bspecial = list
- Cspecial = pages
- Dspecial = updated
- Especial = users
- Fspecial = categories
- Gspecial = versions
7Replace ??? in the TypoScript code below to output a breadcrumb
menu that shows the page path without the root page (page ID:
1) and without the current page. (1)
page = PAGE
page.10 = HMENU
page.10 {
wrap = <p>|</p>
special = rootline
???
1 = TMENU
1.NO.allWrap = |*|/
}- Aspecial.range = -1|0
- Bspecial.range = 0|-1
- Cspecial.range = 1|-2
- Dspecial.range = 1|0
- Especial.range = 2|-1
8What is the output of the TypoScript code below if your website
contains five pages “A”, “B”, “C”, “D”, and “E”? (1)
page = PAGE
page.10 = HMENU
page.10.1 = TMENU
page.10.1.wrap = <p>|</p>
page.10.1.NO.linkWrap = X |*| Y |*| Z
page.10.1.NO.allWrap = | - AXAX XBX XCX YDY ZEZ
- BXAX YBY YCY YDY ZEZ
- CXA XB XC YD ZE
- DXA YB ZC ZD ZE
- EXA YB YC YD ZE
9What is the output of the TypoScript code below if your website
contains only one page “A”? (1)
page = PAGE
page.10 = HMENU
page.10.1 = TMENU
page.10.1.wrap = <p>|</p>
page.10.1.NO.linkWrap = 1 |*| 2 |*| 3
page.10.1.NO.allWrap = | - A1A
- B2A
- C3A
- D1A 2A 3A
- E3A 1A 2A
10What is the output of the TypoScript code below if your website
contains five pages “A”, “B”, “C”, “D”, and “E”? (1)
page = PAGE
page.10 = HMENU
page.10.1 = TMENU
page.10.1.wrap = <p>|</p>
page.10.1.NO.linkWrap = 1 |*| 2 || 3 |*| 4
page.10.1.NO.allWrap = | - A1A 2B 3C 2D 4E
- B4A 2B 2C 3D 1E
- C1A 2B 2C 3D 4E
- D1A 2B 3C 3D 4E
11What is the output of the TypoScript code below if your website
contains five pages “A”, “B”, “C”, “D”, and “E”? (1)
page = PAGE
page.10 = HMENU
page.10.1 = TMENU
page.10.1.wrap = <p>|</p>
page.10.1.NO.linkWrap = 1 |*||*| 2
page.10.1.NO.allWrap = | - A1A 2B 1C 2D 1E
- B1A 1B 1C 1D 2E
- C1A 2B 2C 2D 2E
- D1A 2B 1C 2D 2E
12What is the output of the TypoScript code below if your website
contains five pages “A”, “B”, “C”, “D”, and “E”? (1)
page = PAGE
page.10 = HMENU
page.10.1 = TMENU
page.10.1.wrap = <p>|</p>
page.10.1.NO.linkWrap = X || Y |*||*| Z
page.10.1.NO.allWrap = | - AXA YB XC XD ZE
- BXA YB ZC XD YE
- CXA YB YC YD ZE
- DXA YB ZC ZD ZE
- EYA YB YC YD ZE
13What is the output of the TypoScript code below if your website
contains five pages “A”, “B”, “C”, “D”, and “E”? (1)
page = PAGE
page.10 = HMENU
page.10.1 = TMENU
page.10.1.wrap = <p>|</p>
page.10.1.NO.linkWrap = 1 || 2 |*| 3 |*| 4
page.10.1.NO.allWrap = | - A1A 2B 1C 3D 4E
- B1A 2B 3C 3D 4E
- C1A 2B 1C 2D 3E
- D1A 2B 2C 3D 4E
14What is the output of the TypoScript code below if your website
contains five pages “A”, “B”, “C”, “D”, and “E”? (1)
page = PAGE
page.10 = HMENU
page.10.1 = TMENU
page.10.1.wrap = <p>|</p>
page.10.1.NO.linkWrap = |*||*| X || Y || Z
page.10.1.NO.allWrap = | - AXA YB ZC XD YE
- BXA YB ZC ZD ZE
- CXA XB XC YD ZE
- DXA YB XC YD ZE
Information
- Description
- TYPO3 Zertifikat TYPO3 CI 2022 Quiz on 6. Typoscript (Part 5), created by Angela Dudtkowski on 30/05/2022.
- Author
- Angela Dudtkowski
- Language
- Deutsch
- Views
- 1
- Tags
- Rating
- No ratings yet Rate this quiz