¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

5.2 Working with Fluid

Usuario eliminado 9 preguntas

Hacer el test

Preguntas del test (9)

  1. 1If {object.property} is used in Fluid, how must the domain model method be named to determine the value? (3)
    1. Aproperty()
    2. BgetProperty()
    3. CisProperty()
    4. DhasProperty()
    5. EreturnProperty()
  2. 2How can a single template in a third-party extension be customised without copying all other templates from this extension? (1)
    1. AThis is not possible - all template files must be copied
    2. BBy utilising the TypoScript setting templateRootPath
    3. CBy utilising the TypoScript setting templateRootPaths
    4. DBy utilising the method $this->setTemplatePath in the controller
    5. EBy configuring the appropriate TypoScript constants
  3. 3What is required in an Extbase controller to use the default view for a list action? (2)
    1. AA method with the name list() must exist
    2. BA method with the name listAction() must exist
    3. CA method with the name initializeListAction() must exist
    4. DThe method must not return any value
    5. EThe method must return a value by using return at the end of the method
  4. 4Replace ??? in the code snippet below, so that the template can be rendered in any PHP file. (1)

    $view = ???
    $view->setTemplatePathAndFilename($templatepath);
    $view->assign('foo', 'bar');
    $content = $view->render();
    1. Anew \TYPO3\Fluid\View();
    2. Bnew \TYPO3\Fluid\View\View();
    3. Cnew \TYPO3\Fluid\View\StandaloneView();
    4. Dimport \TYPO3\Fluid\View\StandaloneView();
    5. Eimport \TYPO3\Fluid();
  5. 5How can a variable var (set in the controller) be passed to a partial? (2)
    1. A<f:render partial="part" arguments="var" />
    2. B<f:render partial="part" arguments="{var}" />
    3. C<f:render partial="part" arguments="{var: var}" />
    4. D<f:render partial="part" arguments="{0: _all}" />
    5. E<f:render partial="part" arguments="{_all}" />
  6. 6How can multiple variables be passed to the view? (3)
    1. ABy using $this->view->assignMultiple()
    2. BBy using $this->view->assign() multiple times
    3. CBy setting $this->view->setMultiple(true)
    4. DBy setting $this->view->assignMultiple(true)
    5. EBy using an array in the method call $this->view->assign()
  7. 7What is the meaning of the optional attribute in the following code? (1)
    <f:render partial="list" section="content" optional="true" arguments="{blog:blog}" />
    1. AIf blog does not exist, argument “blog” will not be passed to the partial
    2. BThe section can also be named content_1, content_2, etc.
    3. CIf the partial does not exist, no error appears
    4. DThe output is optional – this means if the partial is empty, nothing is displayed
    5. EIf the section does not exist, no error appears
  8. 8How can the rendering of the <html> tag in the following partial be prevented? (1)

    <html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:n="https://ty\
    po3.org/ns/GeorgRinger/News/ViewHelpers">
    <f:if condition="{newsItem.title}">
    <f:then>
    <n:titleTag>{newsItem.title}</n:titleTag>
    </f:then>
    <f:else>
    <n:titleTag>News Detail</n:titleTag>
    </f:else>
    </f:if>
    </html>
    1. AThis is not possible – Fluid always renders the entire HTML document
    2. BBy utilising layouts
    3. CBy setting the TypoScript option render.html = false
    4. DBy setting the data-namespace-typo3-fluid attribute in the <html>-tag
    5. EUsing the <f:comment> ViewHelper is the only option to prevent the rendering
  9. 9Which of the following inline syntax is correct? (1)
    1. A{f:if{condition:'{salutation}==1',then:'Mr',else:'Ms'}}
    2. B{f:if(condition:'{salutation}==1',then:'Mr',else:'Ms')}
    3. C{f:if(condition:'(salutation)==1',then:'Mr',else:'Ms')}
    4. D{f:if(condition:{salutation}==1,then:'Mr',else:'Ms')}
    5. E{f:if(condition:salutation==1,then:'Mr',else:'Ms')}

Información

Descripción
El usuario ha eliminado su información de asignaturas Test sobre 5.2 Working with Fluid, creado por Usuario eliminado el 27/04/2022.
Autor
Usuario eliminado
Idioma
English
Visitas
20
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?