3.1 General TYPO3 Features and APIs

Beschreibung

TYPO3 CD 2020 (zweite Auflage) Quiz am 3.1 General TYPO3 Features and APIs, erstellt von Pascal Bartl am 29/03/2021.
Pascal Bartl
Quiz von Pascal Bartl, aktualisiert more than 1 year ago
Pascal Bartl
Erstellt von Pascal Bartl vor mehr als 3 Jahre
34
0

Zusammenfassung der Ressource

Frage 1

Frage
What needs to be done in a TYPO3 extension to send emails? (1)
Antworten
  • The standard PHP function mail() must be used
  • The system extension swiftmailer needs to be installed and activated
  • The GeneralUtility class provides a static function email() that should be used to send emails
  • An instance of \TYPO3\CMS\Core\Mail\MailMessage needs to be created
  • Backend user records need to be retrieved from the database, because emails can only be sent to registered backend users for privacy reasons

Frage 2

Frage
What is required to use the global Category API in a custom extension? (2)
Antworten
  • The method ExtensionManagementUtility::makeCategorizable() can be used
  • A relation to class \TYPO3\CMS\Extbase\Domain\Model\Category is required
  • A database field named categories must exist
  • A mapping to the category table needs to be added as TypoScript
  • A FlexForm with the field <categories> must be created

Frage 3

Frage
Which statements about the MetaTag API are correct? (3)
Antworten
  • The TYPO3 core features an Open Graph MetaTagManager by default (system extension “SEO”)
  • Developers can only overwrite existing meta tags, but can not create custom tags by using the MetaTag API
  • Developers can not remove meta tags by using the MetaTagManager
  • When using the MetaTag API, meta tags can be set in TypoScript or in PHP (for example in a frontend plugin)
  • Custom MetaTagManager should implement the \TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface
  • The system extension metatags must be installed to use the MetaTag API

Frage 4

Frage
How do you configure the Doctrine DBAL Query Builder to also return hidden records? (1)
Antworten
  • This is not possible: TYPO3 never returns deleted or hidden records
  • By setting the TypoScript option setup.tx_querybuilder.include.hidden = 1
  • By using the method removeByType() of the RestrictionBuilder
  • By using the method includeHiddenRecords() of the RestrictionBuilder

Frage 5

Frage
Which value must be set in the database to make a dataset available in all languages? (1)
Antworten
  • language = 0
  • language = -1
  • sys_language_uid = 0
  • sys_language_uid = -1
  • t3_origuid = 0

Frage 6

Frage
How do you determine the UID of a logged-in frontend user? (1)
Antworten
  • By executing the function $this->userContext->getUid() that is available in Extbase controllers by default
  • By accessing the User Aspect of the Context API
  • By accessing the global variable $GLOBALS['BE_USER']
  • The only way is to query the database directly

Frage 7

Frage
What does the following API call do in the TYPO3 backend? (2) use \TYPO3\CMS\Core\Utility\GeneralUtility; use \TYPO3\CMS\Core\Messaging\FlashMessage; ... $message = GeneralUtility::makeInstance( FlashMessage::class, 'Lorem ipsum dolor sit amet.', 'Excepteur sint occaecat cupidatat', FlashMessage::WARNING );
Antworten
  • It generates a warning as a Flash Message
  • It produces a PHP exception if the instance runs in the development context
  • It generates a Flash Message with the headline “Lorem ipsum dolor sit amet.”
  • It generates a Flash Message with the body text “Lorem ipsum dolor sit amet.”
  • It generates a message, if the user has Adobe Flash installed
  • The message is stored in the session until shown to the user

Frage 8

Frage
Which statements about TYPO3’s Flash Messages Renderer are correct? (3)
Antworten
  • The CLI context uses the BootstrapRenderer by default
  • The backend uses the BootstrapRenderer by default
  • The frontend context has no default class (developers have to implement their own renderer class)
  • The FlashMessageRendererResolver detects the context to use the correct output format for Flash Messages
  • Developers can implement their own renderer class as required
  • The Flash Message Renderer has been marked deprecated in TYPO3 v9 and will be removed in v10
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Elektromagnetismus
Peter Kasebacher
Stochastik Grundbegriffe
steffen_1411
Unfallversicherung
Christine Zehnder
M1, Kurs 2: Einführung in die Forschungsmethoden - Unit 1 - Psychologie als eine empirische Wissenschaft: Warum brauchen wir Forschungsmethoden?
Chris Tho
Fachbegriffe für den Sprachunterricht
Stefan Kurtenbach
Vetie Immunologie 88-114
Karo Karl
Vetie Reprospaß2
Tropsi B
Vetie: Geflügelkrankheiten 2018
Johanna Tr
Vetie - Ts & spe. E. - 2021
Christopher Groß
Vetie Geflügelkrankheiten Fragebogen Röntgen 2, Haltung und Arten
Tropsi B
Vetie Berufsrecht 2020 !
Alena Gesing