O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

6.2 Built-in ViewHelpers

Usuário eliminado 11 perguntas Atualizado em 27 abr 2022

Fazer o quiz

Perguntas do quiz (11)

  1. 1Which built-in ViewHelpers exist in the Fluid extension shipped with the TYPO3 core? (2)
    1. AThe AntiCrossSiteScripting-ViewHelper (to protect the content against cross-site scripting
      attacks).
    2. BThe Translate-ViewHelper (to retrieve a label from a language file)
    3. CThe Average-ViewHelper (to calculate the average across values of an array)
    4. DThe DebugViewHelper (to generate a HTML dump of the passed variable)
    5. EThe Style-ViewHelper (to apply CSS styles to a string)
    6. FThe ObfuscateEmail-ViewHelper (to obfuscate an email address)
  2. 2What 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>
    1. AA 2 B C 4 D
    2. BA 1 B C 3 D
    3. C1 A B 3 C D
    4. D2 A B 4 C D
    5. EA C
  3. 3What 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>
    1. Afoobarbaz
    2. Bfoofoobarbarbaz
    3. C0barbaz34
    4. Dfoobarbazfoobar
    5. E01234
  4. 4What 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>
    1. AA (g) BD (r) C (y)
    2. Bg (A) r (BD) y (C)
    3. CA () BD () C ()
    4. D(Ag) (BDr) (Cy)
    5. E(gA) (rBD) (yC)
  5. 5How can comments be implemented in Fluid so that the content does not appear in the HTML source code? (2)
    1. A<comment>content</comment>
    2. B{comment}content{/comment}
    3. C{content -> f:comment()}
    4. D<!-- content -->
    5. E<f:comment>content</f:comment>
  6. 6How can an image be scaled down to a width of 100px by the TYPO3 core? (1)
    1. A<img src="image.jpg" width="100">
    2. B<img src="image.jpg" width="100px">
    3. C<f:img src="image.jpg" width="100" />
    4. D<f:image src="image.jpg" width="100" />
    5. E<f:size src="image.jpg" width="100" />
  7. 7How can a string comparison be implemented with an If-ViewHelper? (2)
    Assumption:
    // assignment in the controller
    $this->view->assign('string', 'Hello');
    1. AThis is not possible.
    2. B<f:if condition="{string}=='Hello'">
    3. C<f:if condition="{string}='Hello'">
    4. D<f:if condition="{string}==Hello">
    5. E<f:if condition="{42:string}=={42:'Hello'}">
  8. 8You want to add the HTML attribute data-user="fred" to the FormTextfield-ViewHelper. How can this be achieved? (2)
    1. ABy adding the attribute additionalAttributes="{data-user: 'fred'}"
    2. BBy adding the attribute addAttributes="{data-user: fred}"
    3. CBy adding the attribute data="{user: 'fred'}"
    4. DBy adding the attribute data-user="fred"
  9. 9What 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.
    1. A<input type="text" name="tx_MyExtension_Bloglisting[blog][title]" value="">
    2. B<input type="text" name="tx_myextension_bloglisting[blog][title]" value="">
    3. C<input type="text" name="blog[title]" value="">
    4. D<input type="text" name="title" value="">
    5. E<input type="text" name="[blog][title]" value="">
  10. 10Which arguments are supported by the <f:flashMessage> ViewHelper? (1)
    1. Aid, flash
    2. Bid, name, title, each
    3. Cid, class, title, queueIdentifier, as
    4. DrenderMode, title, name
    5. ENone of the arguments above

Informações

Descrição
O usuário eliminou as informações de disciplina Quiz sobre 6.2 Built-in ViewHelpers, criado por Usuário eliminado em 27-04-2022.
Autor
Usuário eliminado
Idioma
English
Visualizações
31
Histórico
Criado em 27 abr 2022 · atualizado em 27 abr 2022
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?