Ma Hi
Quiz von , erstellt am more than 1 year ago

TYPO3 Quiz am Chapter 7, erstellt von Ma Hi am 02/06/2015.

19
1
0
Ma Hi
Erstellt von Ma Hi vor mehr als 9 Jahre
Schließen

Chapter 7

Frage 1 von 24

1

You want to create a website with four different output formats, e.g. HTML, print version, iPhone and plain text. What do you need? (1)

Wähle eine oder mehr der folgenden:

  • Four different servers with a TYPO3 installation on each.

  • Four TYPO3 installations on one server.

  • Four PAGE objects with different typenum

  • Four pages in a TYPO3 installation that contain a root template.

  • Four root templates.

Erklärung

Frage 2 von 24

1

When you call up your website in the frontend, the following error message appears: “No Template found!” Why is this? (1)

Wähle eine oder mehr der folgenden:

  • No HTML template was specified.

  • The HTML template is read-only.

  • No TypoScript root template was specified.

  • The path to the HTML template is not correct.

  • No extension template was created.

Erklärung

Frage 3 von 24

1

When you call up your website in the frontend, the following error message appears: “The page is not configured!” Why is this? (1)

Wähle eine oder mehr der folgenden:

  • No HTML template was specified.

  • No TypoScript root template was specified.

  • No extension template was created.

  • There is no PAGE object.

  • The RootLevel check box in the root template was not activated.

Erklärung

Frage 4 von 24

1

When you call up your website in the frontend, the following error message appears: “The page is not configured!” Which code fixes the error? (4)

Wähle eine oder mehr der folgenden:

  • page = PAGE

  • seite = PAGE

  • page = PAGE
    page.50 = HTML

  • page = PAGE
    page.50 = TEXT

  • page = PAGE
    page.50 = TEMPLATE

  • website = PAGE
    website.foobar = 37

Erklärung

Frage 5 von 24

1

Is it possible to build a website without an HTML template, markers and subparts? (1)

Wähle eine oder mehr der folgenden:

  • No, it is not possible. Every website requires at least one HTML template.

  • Yes, if you use TypoScript.

  • No, you would need the TemplaVoila extension.

  • Yes, but only if the site has no HTML output.

  • No, ever since the HTML content object was removed in Version 6.0, this is no longer possible.

Erklärung

Frage 6 von 24

1

How can you display a site name in the title line of the browser? (1)

Wähle eine oder mehr der folgenden:

  • The Install Tool contains a parameter for this purpose
    $TYPO3_CONF_VARS['SYS']['sitename']

  • You can enter the site name in the Basic Configuration view in the Install Tool.

  • By using Sitetitle in the Template module to specify the title in the TypoScript template.

  • By using the TypoScript option config.pageTitle = <...>.

  • By using the TSconfig option config.pageTitle = <...>.

Erklärung

Frage 7 von 24

1

The TypoScript stdWrap properties debug, debugData and debugFunc are helfpul when you are retying to debug while working with templates and TypoScript But why does the following script not function by default, i.e. why does it not produce an output on the screen? (1)

page = PAGE
page.10 = TEXT
page.10.value = Hello world!
page.10.debugData = 1

Wähle eine oder mehr der folgenden:

  • The syntax is wrong, it should be page.10.stdWrap.debugData.

  • The output is always written to a log file and not displayed on screen.

  • You first have to enter the client IP in the Install Tool.

  • The function mentioned above only works for local installations. If the TYPO3 instance is on the internet, the display of debug data does not work.

  • The output happens in the backend in a module within the Info module, rather than on screen.

Erklärung

Frage 8 von 24

1

You have created a TypoScript template, filled all required markers and subparts with content and configured all extensions in use. As a consequence, your template is growing increaingsly bulky. What can you do about this? (2)

Wähle eine oder mehr der folgenden:

  • You can separate the TypoScript template into several files and include them in the Include basis template section.

  • You can separate the TypoScript template into several templates and include them in the Include basis template section.

  • You can remove unnecessary TypoScript code.

  • You can use the MinimizeTypoScript extension to shrink the Typo- Script code.

  • You can export the same TypoScript command code into constants to save space.

Erklärung

Frage 9 von 24

1

The previous question demonstrated that it is possible to include a TypoScript file called filename.typoscript in a TypoScript template. However, by default it is not possible to edit or create this file in the File > Filelist module. Why is this? (1)

Wähle eine oder mehr der folgenden:

  • Only image and PDF files can be uploaded in the File ‣ Filelist module.

  • You first have to permit the use of *.typoscript files in the Install Tool.

  • The File > Filelist module cannot be used for this purpose either; you have to use the Quixplorer extension.

  • You first have to permit the use of *.typoscript files in the Page TSconfig.

  • The file extension can only have two characters, e.g. filename.ts.

Erklärung

Frage 10 von 24

1

You want to include a complete directory of TypoScript files with an include statement; is this possible, and, if yes, how? (1)

Wähle eine oder mehr der folgenden:

  • No, it is not possible. You can only use an include statement to include individual files.

  • <INCLUDE_TYPOSCRIPTDIR: source="EXT:myext/Typoscript">

  • <INCLUDE_TYPOSCRIPT: source="DIR:EXT:myext/Typoscript">

  • <INCLUDE_TYPOSCRIPT: source="DIR:myext/Typoscript">

  • <INCLUDE_TYPOSCRIPT: sourcedir="EXT:myext/Typoscript">

Erklärung

Frage 11 von 24

1

By default, it is not possible to create, edit or upload PHP files in the File ‣ Filelist module. Why is this? (2)

Wähle eine oder mehr der folgenden:

  • You first have to permit the use of php files in the Install Tool, using the $TYPO3_CONF_VARS['SYS'][textfile_ext] option.

  • These actions are prohibited for safety reasons, and you cannot change this behavior.

  • You first have to permit the use of php files in the Install Tool, using the $TYPO3_CONF_VARS['SYS'][fileDenyPattern] option.

  • You first have to permit the use of php files in the Page TSconfig.

Erklärung

Frage 12 von 24

1

You want to use TypoScript template A for the current page and template B for all the subpages of the current page. What is the best way to proceed? (1)

Wähle eine oder mehr der folgenden:

  • You assign template A to the current page, and template B to each subpage.

  • You assign template A to the current page, and then assign template B in the Template on next Level setting.

  • You assign template A to the current page, and use a condition to assign template B to the subpages.

  • You assign template B to all pages and use a condition to assign template A to the current page.

Erklärung

Frage 13 von 24

1

You want to refer to the DOCUMENT_BODY subpart in your HTML template. Which is the correct code for this purpose? (1)

page = PAGE
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/template.html
??? = DOCUMENT_BODY
}

Wähle eine oder mehr der folgenden:

  • subpart

  • marks

  • useSubPart

  • workOnSubpart

  • defineSubpart

Erklärung

Frage 14 von 24

1

You are presented with the following HTML template and TypoScript setup. which code do you need to put in place of the question marks so that ###HEADLINE### is replaced with the phrase Hello World!? (1)

<!-- ###DOCUMENT### begin -->
<h1>###HEADLINE###</h1>
<!-- ###DOCUMENT### end -->

page = PAGE
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/template.html
workOnSubpart = DOCUMENT
??? {
HEADLINE = TEXT
HEADLINE.value = Hello World!
}
}

Wähle eine oder mehr der folgenden:

  • subparts

  • subpart

  • markers

  • marker

  • marks

Erklärung

Frage 15 von 24

1

You have used a marker, ###HMENU###, in the HTML template and replaced it using TypoScript. However, the marker remains unchanged in the output. Why is this? (1)

Wähle eine oder mehr der folgenden:

  • Some names have been reserved for markers, and these include HMENU, which may therefore not be used.

  • You have forgotten to delete the backend cache.

  • There is a typo in the marker (in either the HTML or TypoScript template).

  • A marker must be written in the following form if it is to be replaceable: <!-- ###HMENU### begin -->

Erklärung

Frage 16 von 24

1

You want to use a character other than # as the marker limit. Is this possible, and if so, how? (1)

Wähle eine oder mehr der folgenden:

  • It is not possible, the character is hard-coded into the TYPO3 source code.

  • You can use the markerWrap property to change the character.

  • You can use any character you like, as TYPO3 detects from the syntax whether a marker is being indicated.

  • You have to install the MarkerChange extension.

Erklärung

Frage 17 von 24

1

Select the marker combination that the following TypoScript code can replace in a meaningful manner. (2)

page = PAGE
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/template.html
workOnSubpart = DOCUMENT
marks {
MARKER = TEXT
MARKER.value = Hello World!
}
subparts {
SUB = TEXT
SUB.value = TYPO3-Integrator!
}
}

Wähle eine oder mehr der folgenden:

  • ###MARKER###
    ###SUB###

  • MARKER
    SUB

  • <!-- ###SUB### begin -->
    ###MARKER###
    <!-- ###SUB### end -->

  • ###MARKER###
    <!-- ###SUB### begin -->
    <!-- ###SUB### end -->

  • <!-- ###SUB### begin -->
    <!-- ###SUB### end -->
    ###MARKER###

Erklärung

Frage 18 von 24

1

What would you enter in place of the question marks in order to replace the marker ###HEADLINE### with the string <em><strong>Hallo!</strong></em>? (2)

page = PAGE
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/template.html
workOnSubpart = DOCUMENT
marks {
???
}
}

Wähle eine oder mehr der folgenden:

  • HEADLINE = HTML
    HEADLINE.value = <em><strong>Hallo!</strong></em>

  • HEADLINE = TEXT
    HEADLINE.value = <em><strong>Hallo!</strong></em>

  • HEADLINE = HTML
    HEADLINE.value = <strong>Hallo!</strong>
    HEADLINE.value.wrap = <em>|</em>

  • HEADLINE = TEXT
    HEADLINE.value = <strong>Hallo!</strong>
    HEADLINE.wrap = <em>|</em>

Erklärung

Frage 19 von 24

1

You want to replace the subpart with Hello World! and the marker with Is there anybody out there? in the HTML template below. Which line do you need to add to the TypoScript code? (1)

<!-- ###SUB### begin -->
###MARKER###
<!-- ###SUB### end -->

page = PAGE
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/templates/test.html
workOnSubpart = DOCUMENT
???
subparts {
SUB = TEXT
SUB.value = Hello World! ###MARKER###
}
marks {
MARKER = TEXT
MARKER.value = Is there anybody out there?
}
}

Wähle eine oder mehr der folgenden:

  • nonCachedSubst = 1

  • substMarksSeparately = 1

  • useMarksInSubparts = 1

  • There is nothing missing, the output will be correct.

  • That is not possible.

Erklärung

Frage 20 von 24

1

Your layout has five columns, so you want to adapt the page view in the backend. What do you need to do? (1)

Wähle eine oder mehr der folgenden:

  • You write mod.SHARED.colPos = 1,0,2,3,4 in the Page TSconfig.

  • You write mod.SHARED.colPos = 0,1,2,3,4 in the Page TSconfig.

  • You use a data record of the Backend layout type, set up five columns there and assign the layout to the page.

  • You cannot do this with the tools in TYPO3. You have to install TemplaVoilà.

  • You extend the TCA with the line
    TCA.pages.colPos := addToList(4)

Erklärung

Frage 21 von 24

1

What is the name of the TypoScript content object you need if you want to use Fluid to generate the page template? (1)

Wähle eine oder mehr der folgenden:

  • TEMPLATE

  • FLUID

  • FLUIDTEMPLATE

  • PAGETEMPLATE

  • FLUID_TEMPLATE

  • FLUID_ENGINE

Erklärung

Frage 22 von 24

1

Is it possible to access the page properties of a page template that was embedded using FLUIDTEMPLATE? (1)

Wähle eine oder mehr der folgenden:

  • No, that is not possible for security reasons.

  • No, not directly. You can access it via TypoScript and display the result in the template.

  • Yes, using {pageproperties}.

  • Yes, using {data}.

  • Yes, using <INCLUDE data="pageproperties">.

Erklärung

Frage 23 von 24

1

Which of the following Fluid ViewHelper do not exist? (2)

Wähle eine oder mehr der folgenden:

  • <f:if>

  • <f:base>

  • <f:render>

  • <f:section>

  • <f:else>

  • <f:format.raw>

  • <f:switch>

  • <f:html>

  • <f:format.translate>

  • <f:comment>

Erklärung

Frage 24 von 24

1

Look at the question marks in the following code. How can you replace them with content for a Fluid template so that it can be displayed there via {content}? (1)

page = PAGE
page {
10 = FLUIDTEMPLATE
10 {
file = fileadmin/templates/Home.html
???
}
}

Wähle eine oder mehr der folgenden:

  • variable.content < styles.content.get

  • variables.content < styles.content.get

  • subparts.content < styles.content.get

  • marks.content < styles.content.get

  • variables.10.content < styles.content.get

  • content < styles.content.get

Erklärung