6.3 Widget ViewHelpers

Descripción

TYPO3 CD 2020 (zweite Auflage) Test sobre 6.3 Widget ViewHelpers, creado por Pascal Bartl el 09/04/2021.
Pascal Bartl
Test por Pascal Bartl, actualizado hace más de 1 año
Pascal Bartl
Creado por Pascal Bartl hace más de 3 años
1
0

Resumen del Recurso

Pregunta 1

Pregunta
Which statements about Widgets are correct? (2)
Respuesta
  • Widgets are ViewHelpers
  • Widgets feature their own controller
  • Widgets are interfaces
  • Widgets cannot be cascaded
  • Widgets do not return any content, but process them

Pregunta 2

Pregunta
Which statements about Widgets are correct? (3)
Respuesta
  • Widget classes always extend the abstract class \TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper
  • A Widget must have its own template
  • Widget class files should be stored in directory Classes/ViewHelpers/Widget/
  • Widgets can only be used in the frontend
  • Widgets can only be used in the backend
  • Widgets use their own ViewHelpers to manage sub-requests

Pregunta 3

Pregunta
Which statements about files and directories for Widgets are correct by convention? (3)
Respuesta
  • Widget class files are located under Classes/ViewHelpers/Widgets/
  • Widget class files are located under Classes/Widgets/
  • The controller class file of a Widget-ViewHelper is located under Classes/ViewHelpers/Widgets/Controller/
  • The controller class file of a Widget-ViewHelper is located under Classes/Controller/Widgets/
  • Widgets must be registered in the global configuration file typo3conf/LocalConfiguration.php
  • Template files of a Widget are located under Resources/Private/Templates/ViewHelpers/Widget/<widgetname>/

Pregunta 4

Pregunta
Which Widget ViewHelpers are provided by the TYPO3 core by default? (3)
Respuesta
  • <f:widget.paginate> for the pagination of objects
  • <f:widget.sort> for sorting objects and arrays in alphanumeric order.
  • <f:widget.metaTags> for adding meta tags to the HTML output.
  • <f:widget.filter> for removing swearword from a text.
  • <f:widget.autocomplete> for auto-completing input fields.
  • <f:widget.link> for creating links to Extbase actions within widgets

Pregunta 5

Pregunta
How can a custom template be used for a Widget shipped with the TYPO3 core? (1)
Respuesta
  • This is not possible, because Widget templates are not configurable
  • By utilising the subkey view.widget in TypoScript
  • By utilising the subkey view.template in TypoScript
  • If the template is located in the sub-directory widget, nothing more needs to be done
  • Template files with the file extension _w.html are automatically treated as Widget templates

Pregunta 6

Pregunta
Which input values can be processed by the Paginate-ViewHelper? (3)
Respuesta
  • \TYPO3\CMS\Extbase\ViewHelpers\Paginate\InputValues
  • \TYPO3\CMS\Extbase\Persistence\Generic\QueryResultInterface
  • \TYPO3\CMS\Extbase\Persistence\ObjectStorage
  • \TYPO3\CMS\Extbase\Persistence\ObjectStorageInterface
  • \ArrayAccess
Mostrar resumen completo Ocultar resumen completo

Similar

Mapas mentales con ExamTime
maya velasquez
Cómo Preparar los Exámenes
maya velasquez
Consejos para Estudiar y Citas
maya velasquez
El Cuerpo Humano
Diego Santos
LITERATURA...
JL Cadenas
Modernismo y Generación del 98
David Gracia
Should, Must and Have to
Kate Pb
Prueba Matematicas
Deisy Medina
Los tipos de Emprendedores Existentes
Laura -
8 consejos para mejorar la gestión de tus proyectos
Laura -
7 libros que todo profesional debería leer
Laura -