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

Quiz

6. TypoScript (Part 1)

Angela Dudtkowski 20 questions

Take the quiz

Questions in this quiz (20)

  1. 1Which of these statements about TypoScript is true? (1)
    1. ATypoScript is a programming language like ActionScript or JavaScript
    2. BTypoScript is an extension for TYPO3
    3. CTypoScript can be used to configure how the output of a website should appear in the frontend
    4. DPHP programming skills are required to write TypoScript code
  2. 2The size and complexity of a TypoScript setup template that is
    maintained through the backend is growing rapidly and becomes
    confusing. What can you do to simplify working with it? (2)
    1. ADivide the TypoScript template into several files and include/import them into your master template
    2. BDivide the TypoScript template into several templates and include them in the “Include basis template”
      section
    3. CRemove all line breaks in the TypoScript code to reduce the amount of data
    4. DUse the “Optimize TypoScript” function to remove redundant and unused TypoScript code
    5. EMove the TypoScript setup template to the TypoScript constants field to save space
  3. 3The error message “No TypoScript template found!” comes up
    when you access the frontend of a TYPO3 site. What causes this
    issue? (1)
    1. ANo HTML template was specified
    2. BThe TypoScript template is not stored on the root page ID 0
    3. CThe path to the HTML template is not correct
    4. DNo TypoScript rootlevel template was specified
  4. 4The error message “The page is not configured!” comes up when
    you access the frontend of a TYPO3 site. What causes this issue? (1)
    1. ANo HTML template was specified
    2. BThe “rootlevel” toggle switch in the root template is not enabled
    3. CNo valid PAGE object is defined
    4. DThe page you accessed does not contain any content elements
    5. EThe site configuration is missing
  5. 5How do you import/include a TypoScript configuration file in your
    TypoScript setup? (2)
    1. ABy a right mouse-click on the file in the backend module “File → Filelist” and selecting “include
      template”
    2. BBy using the following TypoScript instruction to include the file (one line):
      @INCLUDE_TYPOSCRIPT FILE='EXT:site/Configuration/TypoScript/setup.typoscript'
    3. CBy using the following TypoScript instruction to include the file (one line):
      <INCLUDE_TYPOSCRIPT:
      source="FILE:EXT:site/Configuration/TypoScript/setup.typoscript">
    4. DBy using the following TypoScript instruction to include the file (one line):
      @import 'EXT:site/Configuration/TypoScript/setup.typoscript'
  6. 6What are possible ways to include all TypoScript configuration
    files, that are stored in a directory, into your system? (2)
    1. AUse the following statement to include the directory (e.g. extension “sitepackage”):
      <INCLUDE_TYPOSCRIPT: directory="EXT:sitepackage/Configuration/Typoscript/">
    2. BUse the following statement to include the directory (e.g. extension “sitepackage”):
      <INCLUDE_TYPOSCRIPT: source="DIR:EXT:sitepackage/Configuration/Typoscript/">
    3. CUse the following statement to include the directory (e.g. extension “sitepackage”):
      @include 'EXT:sitepackage/Configuration/TypoScript/'
    4. DUse the following statement to include the directory (e.g. extension “foobar”):
      @import 'EXT:foobar/Configuration/TypoScript/'
    5. EUse the following statement to include the directory (e.g. extension “foobar”):
      @require 'EXT:foobar/Configuration/TypoScript/'
  7. 7The following @import instruction in TypoScript does not work.
    What causes the problem? (1)
    1. AThe keyword “FILE:” is missing. The line shoud read:
      @import FILE:fileadmin/Configuration/TypoScript/setup.typoscript
    2. BThe @import instruction was removed in TYPO3 v11 LTS and can’t be used anymore
    3. CYou can not store TypoScript configuration files in the fileadmin/ path. You must use an extension,
      for example:
      @import EXT:sitepackage/Configuration/TypoScript/setup.typoscript
    4. DSingle or double quotes are missing. The line should read:
      @import "fileadmin/Configuration/TypoScript/setup.typoscript"
  8. 8Replace “???” in the TypoScript code below with a content object
    (cObject) to display the current time on the website. (1)

    page = PAGE
    page.10 = ???
    page.10 {
    10 = TEXT
    10.data = date:U
    10.strftime = date: %F, time: %T
    }
    1. AUSER
    2. BUSER_INT
    3. CCOA
    4. DCOA_INT
    5. ETIME
    6. FTEXT
    7. GTEXT_INT
  9. 9Your TypoScript code contains a syntax error. Which backend
    utilities help you to locate the cause of the issue? (2)
    1. AThe TypoScript Object Browser (TSOB)
    2. BThe Constant Editor
    3. CThe Template Analyzer
    4. DThe Admin Panel
    5. EThe backend module “Admin Tools → Environment”
  10. 10What is the effect of the following two lines of TypoScript code in
    the constants area? (2)

    # cat=foobar/ctext/a; type=color; label=text color
    mytextcolor = red
    1. ATYPO3 ignores the first line because of the comment character #
    2. BThe constant mytextcolor is set to red
    3. CThe value red is assigned to the variable foobar.ctext.a
    4. DThe Constant Editor shows a selection field that allows backend users to pick a colour
    5. EThis code has no effect

Information

Description
TYPO3 Zertifikat TYPO3 CI 2022 Quiz on 6. TypoScript (Part 1), created by Angela Dudtkowski on 30/05/2022.
Language
Deutsch
Views
1
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?