6.2 Built-in ViewHelpers

Descrição

TYPO3 CD 2020 (zweite Auflage) Quiz sobre 6.2 Built-in ViewHelpers, criado por Pascal Bartl em 09-04-2021.
Pascal Bartl
Quiz por Pascal Bartl, atualizado more than 1 year ago
Pascal Bartl
Criado por Pascal Bartl aproximadamente 3 anos atrás
1
0

Resumo de Recurso

Questão 1

Questão
Which built-in ViewHelpers exist in the Fluid extension shipped with the TYPO3 core? (2)
Responda
  • The AntiCrossSiteScripting-ViewHelper (to protect the content against cross-site scripting attacks).
  • The Translate-ViewHelper (to retrieve a label from a language file)
  • The Average-ViewHelper (to calculate the average across values of an array)
  • The DebugViewHelper (to generate a HTML dump of the passed variable)
  • The Style-ViewHelper (to apply CSS styles to a string)
  • The ObfuscateEmail-ViewHelper (to obfuscate an email address)

Questão 2

Questão
What is the output of the following Fluid template? (1) <f:for each="{0: 'A', 1: 'B', 2: 'C', 3: 'D'}" as="v" iteration="i"> <f:if condition="{i.isEven}"> {i.cycle} </f:if> {v} </f:for>
Responda
  • A 2 B C 4 D
  • A 1 B C 3 D
  • 1 A B 3 C D
  • 2 A B 4 C D
  • A C

Questão 3

Questão
What is the output of the following Fluid template? (1) <f:for each="{0:1, 1:2, 2:3, 3:4, 4:5}" as="foo"> <f:cycle values="{0: 'foo', 1: 'bar', 2: 'baz'}" as="cycle"> {cycle} </f:cycle> </f:for>
Responda
  • foobarbaz
  • foofoobarbarbaz
  • 0barbaz34
  • foobarbazfoobar
  • 01234

Questão 4

Questão
What is the output of the following Fluid template? (1) <f:groupedFor each="{0: {name: 'A', tag: 'g'}, 1: {name: 'B', tag: 'r'}, 2: {name: '\ C', tag: 'y'}, 3: {name: 'D', tag: 'r'}}" as="foo" groupBy="tag" groupKey="tag"> {tag} (<f:for each="{foo}" as="bar" key="label">{bar.name}</f:for>) </f:groupedFor>
Responda
  • A (g) BD (r) C (y)
  • g (A) r (BD) y (C)
  • A () BD () C ()
  • (Ag) (BDr) (Cy)
  • (gA) (rBD) (yC)

Questão 5

Questão
How can comments be implemented in Fluid so that the content does not appear in the HTML source code? (2)
Responda
  • <comment>content</comment>
  • {comment}content{/comment}
  • {content -> f:comment()}
  • <!-- content -->
  • <f:comment>content</f:comment>

Questão 6

Questão
How can an image be scaled down to a width of 100px by the TYPO3 core? (1)
Responda
  • <img src="image.jpg" width="100">
  • <img src="image.jpg" width="100px">
  • <f:img src="image.jpg" width="100" />
  • <f:image src="image.jpg" width="100" />
  • <f:size src="image.jpg" width="100" />

Questão 7

Questão
How can a string comparison be implemented with an If-ViewHelper? (2) Assumption: // assignment in the controller $this->view->assign('string', 'Hello');
Responda
  • This is not possible.
  • <f:if condition="{string}=='Hello'">
  • <f:if condition="{string}='Hello'">
  • <f:if condition="{string}==Hello">
  • <f:if condition="{42:string}=={42:'Hello'}">

Questão 8

Questão
You want to add the HTML attribute data-user="fred" to the FormTextfield-ViewHelper. How can this be achieved? (2)
Responda
  • By adding the attribute additionalAttributes="{data-user: 'fred'}"
  • By adding the attribute addAttributes="{data-user: fred}"
  • By adding the attribute data="{user: 'fred'}"
  • By adding the attribute data-user="fred"

Questão 9

Questão
What is the HTML output of the following FormTextfield-ViewHelper? (1) <f:form.textfield property="title" /> Assumptions: • The attribute “object” of the parent Form-ViewHelper reads {blog}. • The extension key reads my_extension. • The plugin name reads Bloglisting.
Responda
  • <input type="text" name="tx_MyExtension_Bloglisting[blog][title]" value="">
  • <input type="text" name="tx_myextension_bloglisting[blog][title]" value="">
  • <input type="text" name="blog[title]" value="">
  • <input type="text" name="title" value="">
  • <input type="text" name="[blog][title]" value="">

Questão 10

Questão
Which arguments are supported by the <f:flashMessage> ViewHelper? (1)
Responda
  • id, flash
  • id, name, title, each
  • id, class, title, queueIdentifier, as
  • renderMode, title, name
  • None of the arguments above

Questão 11

Questão
What is required to make sure that all GET parameters passed in the request are added to the link generated by the Link-ViewHelper? (2)
Responda
  • This is the default behaviour - nothing special needs to be done
  • The attribute addQueryStringMethod must be set
  • The attribute addQueryString must be set
  • The attribute addQuery must be set
  • The attribute additionalParams must be set

Semelhante

Como utilizar o Quiz como Suporte
Alessandra S.
Os processos de gestão de pessoas
brunocmt
Expressões em inglês #1
Eduardo .
Mapas Mentais no ExamTime
Luiz Fernando
Vestibular - Regência Verbal
GoConqr suporte .
Princípios da Química
GoConqr suporte .
Revisão
Vanessa Bolina
5 Passos para Aprendizagem de Sucesso
GoConqr suporte .
Plano de estudos ENEM - Parte 1 *Humanas
Alice Sousa
RESUMO DE LITERATURA (PARTE 1)
Ana Loss
Técnicas de Estudo Prof. Manoel Moraes
Luiz Fernando