GoConqr has a new look! Let us know what you think.

Quiz

6. Typoscript (Part 4)

Angela Dudtkowski 20 questions

Take the quiz

Questions in this quiz (20)

  1. 1A condition in TypoScript starts with square brackets. Which of
    the following items end a condition block? (5)
    1. A[GLOBAL]
    2. B[global]
    3. C{global}
    4. D[END]
    5. E[end]
    6. F[End]
    7. G[]
  2. 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]
    1. A[{$princess} > 10]
    2. B[TSFE:princess > 10]
    3. C[intval("{princess}") > 10]
    4. D[globalVar = LIT:10=princess]
    5. E[if(princess > 10) then monster = unicorn]
  3. 3How can you check if the backend_layout field is set to home in User
    and Page TSconfig? (1)
    1. A[globalVar = TSFE:current|backend_layout = "home"]
    2. B[globalVar = TSFE:page|backend_layout = "home"]
    3. C[current|backend_layout = "home"]
    4. D[page|backend_layout = "home"]
    5. E[page["backend_layout"] == "home"]
  4. 4Which TypoScript condition can you use to check if a frontend
    user is currently logged in? (1)
    1. A[login = true]
    2. B[loginUser('*')]
    3. C[loginUser = *]
    4. D[user = login]
    5. E[loginUser = true]
    6. F[login = *]
  5. 5Which TypoScript conditions can you use to check in the
    frontend if the current user is logged-in at the backend? (2)
    1. A[globalVar = TSFE:beUserLogin = 1]
    2. B[globalVar = backend.user.login.true]
    3. C[backend.user.isLoggedIn]
    4. D[frontend.user.isLoggedIn]
    5. E[backend.user.userId > 0]
  6. 6Which TypoScript condition can you use to check if the current
    time is 6pm or later? (1)
    1. A[time >= 18]
    2. B[time() > 18]
    3. C[time("18")]
    4. D[date("G") >= 18]
    5. E[hour >= 18]
  7. 7Which TypoScript conditions can you use to check if the user’s IP
    address is not 123.44.55.66? (2)
    1. A[IP = 123.44.55.66]
    2. B[ip("123.44.55.66")]
    3. C[getenv("REMOTE_ADDR") != "123.44.55.66"]
    4. D[not (getenv("REMOTE_ADDR") matches "/123\.44\.55\.66/")]
    5. E[getTSFE().remote["address"] != "123.44.55.66"]
    6. F[is("REMOTE_ADDR") != "123.44.55.66"]
  8. 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]
    1. A[typo3.version == "11.5.20"] AND [ip("123.45.67.89")]
    2. B[typo3.version == "11.5.20" and ip("123.45.67.89")]
    3. C[typo3.version == "11.5.20" || ip("123.45.67.89")]
    4. D[typo3.branch == "11.5.20" && ip("123.45.67.89")]
    5. E[typo3.branch == "11.5.20"] && [ip("123.45.67.89")]
  9. 9Which functions can you use in a TypoScript condition to access
    the host name requested by the client? (2)
    1. AgetFrontend().getHostname()
    2. BgetRequest().getParams().getHostname()
    3. Crequest.getRemoteAddr()
    4. Dequest.getNormalizedParams().getHttpHost()
    5. Egetenv('HTTP_HOST')
    6. Fgetenv('REMOTE_ADDR')
  10. 10Which TypoScript configuration does TYPO3 provide by default to
    render content? (1)
    1. AThe top-level object page
    2. BThe top-level object core
    3. CThe top-level object styles
    4. DThe top-level object content
    5. EThe top-level object tt_content

Information

Description
TYPO3 Zertifikat TYPO3 CI 2022 Quiz on 6. Typoscript (Part 4), created by Angela Dudtkowski on 30/05/2022.
Language
Deutsch
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?