Andreas Kirilow
Quiz von , erstellt am more than 1 year ago

Programmierung Quiz am TYPO3 CI 2018 8.5 bis 8.6, erstellt von Andreas Kirilow am 20/12/2018.

9
0
0
Andreas Kirilow
Erstellt von Andreas Kirilow vor fast 6 Jahre
Schließen

TYPO3 CI 2018 8.5 bis 8.6

Frage 1 von 13

1

What 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
}

Wähle eine oder mehr der folgenden:

  • A width of 20 pixels.

  • A height of 20 pixels.

  • The value of the constant called h.

  • The height of the text field, which is defined in 20.

  • An offset of 20 pixels in height.

  • A font height of 20 pixels.

Erklärung

Frage 2 von 13

1

Is it possible to select any font in images that contain text and are created using the GIFBUILDER? (2)

Wähle eine oder mehr der folgenden:

  • Yes, but you have to select one of the 20 fonts supplied along with TYPO3.

  • Yes, you can use a font from any font file with the TTF format (TrueType fonts).

  • Yes, you can use a font from any font file with the OTF format (OpenType fonts).

  • Yes, you can use a font from any font file with the CTF format (ClearType fonts).

  • Yes, you can use a font from any font file with the PFM/PFB format (Type 1 fonts).

  • No, you have to use an extension to do this.

  • No, it is not possible.

Erklärung

Frage 3 von 13

1

What does the c in the width and height specifications stand for in the following TypoScript code? (1)

page = PAGE
page.10 = IMAGE
page.10.file = testimage.jpg
page.10.file.width = 100c+100

Wähle eine oder mehr der folgenden:

  • Calculated

  • Crop

  • Constant

  • Clear

  • Continuous

Erklärung

Frage 4 von 13

1

Which TypoScript objects have to be addressed so that contents from tt_content can be returned? (2)

Wähle eine oder mehr der folgenden:

  • PAGE

  • TEMPLATE

  • CONTENT

  • CONFIG

  • META

  • TEXT

  • USER

Erklärung

Frage 5 von 13

1

This next code fills position 10 of a register with the value of the layout field of the current page. How can you return to
querying this value at position 20 instead of the question marks? (2)

10 = LOAD_REGISTER
10.layout.cObject = TEXT
10.layout.cObject.data = TSFE:layout
20 = TEXT
20.???

Wähle eine oder mehr der folgenden:

  • insertData = {register:layout}

  • data = {register:layout}

  • data = register:layout

  • dataWrap = {register:layout}

  • data = {$layout}

  • data = {layout}

  • data = layout

Erklärung

Frage 6 von 13

1

Which content object needs to replace the question marks in the following code to display the current time on the
website? (1)

page = PAGE
page.10 = ???
page.10 {
10 = TEXT
10.data = date:U
10.strftime = %D - %H:%M:%S
}

Wähle eine oder mehr der folgenden:

  • USER

  • USER_INT

  • COA

  • COA_INT

  • TIME

  • TEXT

  • TEXT_INT

Erklärung

Frage 7 von 13

1

You want to use TypoScript to specify a background image. Which content element needs to replace the question marks
in the following code? (1)

page = PAGE
page.10 = ???
page.10 {
file = fileadmin/backgroundimg.jpg
file.width = 100
file.height = 100
stdWrap.wrap = <div style="background-image:url(|); width:100px; height:100px;">Te\
xt</div>
}

Wähle eine oder mehr der folgenden:

  • IMG

  • IMAGE

  • IMG_RESOURCE

  • IMAGE_RESOURCE

  • GIFBUILDER

Erklärung

Frage 8 von 13

1

You want the output of a TEXT content object to be multilingual. What do you need to do? (1)

page = PAGE
page.10 = TEXT
page.10.value = English Text

Note: “Deutscher Text” is German (de) and means German text.

Wähle eine oder mehr der folgenden:

  • You add the following: page.10._LOCAL_LANG.de = Deutscher Text.

  • You add the following: page.10.lang.de = Deutscher Text.

  • You add the following: page.10.de = Deutscher Text.

  • Using the xml_ll extension is a convenient way of translating the language labels.

  • Translations have to be created by means of conditions, for example:
    [globalVar = GP:L = 1]

Erklärung

Frage 9 von 13

1

You want to display the content elements of a page in random order. Is this possible, and if so, how? (1)

page = PAGE
page.10 = CONTENT
page.10 {
table = tt_content
select {
where = colPos = 0
max = 1
???
}
}

Wähle eine oder mehr der folgenden:

  • That is not possible. Content elements are always displayed in the sequence specified in the backend.

  • You have to use an special extension to do this.

  • You replace the question marks with the following line:
    orderBy = random

  • You replace the question marks with the following line:
    orderBy = rand()

  • You replace the question marks with the following line:
    orderBy = rand

Erklärung

Frage 10 von 13

1

From what page does the following script read out the content elements? (1)

page = PAGE
page.10 = CONTENT
page.10 {
table = tt_content
select {
pidInList = this
}
}

Wähle eine oder mehr der folgenden:

  • The content elements from the page with the identifier this.

  • The content elements of the current page.

  • The content elements from the page stored in the register called this.

  • The content elements from the page whose PID is the value of the UID of the current page.

  • The content elements from the page with PID = 0, because there is no such thing as a key word
    called this and TypoScript interprets this as value 0.

Erklärung

Frage 11 von 13

1

What is the output of the following code? (1)

page = PAGE
page.10 = CONTENT
page.10 {
table = tt_content
select {
pidInList = 2,3,4
}
}

Wähle eine oder mehr der folgenden:

  • It creates a menu from the pages with the UIDs 2, 3 and 4.

  • It displays the contents with the UIDs 2, 3 and 4.

  • It displays all the contents of the pages with the UIDs 2, 3 and 4.

  • It displays all contents apart from those with the UIDs 2, 3 and 4.

Erklärung

Frage 12 von 13

1

You want to display the data records from the tt_content table that have the UIDs 2 and 3. What should be in place of
the question marks? (1)

page = PAGE
page.10 = ???
page.10 {
tables = tt_content
source = 2,3
dontCheckPid = 1
}

Wähle eine oder mehr der folgenden:

  • TEXT

  • HTML

  • COA

  • RECORDS

  • DATA

  • CONTENT

Erklärung

Frage 13 von 13

1

When entering a content element, you can use the “Frame” select box to select a frame. What should be in place of the
question marks if you want to enter your own style instructions when entering “Frame 1” (ID=20) and “Frame 2”
(ID=21)? (1)

temp.bodytext = ???
temp.bodytext {
key.field = section_frame
default < tt_content.text.20
20 < .default
20.wrap = <div class="dotted">|</div>
21 < .default
21.wrap = <div class="solid">|</div>
}
tt_content.text.20 >
tt_content.text.20 < temp.bodytext

Wähle eine oder mehr der folgenden:

  • TEXT

  • HTML

  • CASE

  • RECORDS

  • LOAD_REGISTER

  • CONTENT

Erklärung