Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In unserer Beispiel-Extension sollen nicht alle Organisationen ausgegeben werden, sondern nur solche, die zu einem bestimmten Status gehören (z.B. Intern, Extern, Nichtmitglied). Im TypoScript-Template unserer Seite richten wir daher unter dem Pfad plugin.tx_sjroffers.settings eine Option allowedStates ein :
plugin.tx_sjroffers {
settings {
allowedStates = 1,2
}
}
Extbase stellt die Einstellungen unterhalb des Pfades plugin.tx_sjroffers.settings als Array in der Klassenvariablen $this->settings zu Verfügung. Unsere Action sieht damit wie folgt aus:
public function indexAction() {
$this->view->assign('organizations', $this->organizationRepository->
findByStates(t3lib_div::intExplode(',', $this->settings['allowedStates'])));
...
}