[TYPO3-mvc] how to access flexform configuration within extbase plugin?
Roland
most.wanted at gmx.at
Thu Mar 15 15:20:10 CET 2012
hi everybody,
i have got a very simple extbase extension: 1 model object + 1 frontend
plugin (with flexform configuration).
the flexform configuration of the extension represents 1 select box to
select the obeject, which should be shown in the frontend.
i kickstarted the extension with the extension builder. after that i
added the flexform configuration. so far so good.
question: how can i assign the object selected in backend plugin
(flexform) to the view?
i already tried this in the in AlbumController.php:
--- quote ---
/**
* action show
*
* @return void
*/
public function showAction() {
$album = $this->settings['album'];
$this->view->assign('album', $album);
}
--- /quote ---
the fluid template is rendered in the frontend - unfortunatelly without
any data of the object. e.g. in the fluid template:
(1) {album.title} is empty.
(2) <f:count subject="{album.bilder}" /> outputs "0".
(3) {settings.album} results in "3" (= uid of the album record, which is
selected in the plugin-flexform)
if i use $this->view->assign('album', 3); also no object data is shown
in the frontend.
did i miss something? how can i access the flexform configuration data
in my extbase plugin?
kind regards.
roland
More information about the TYPO3-project-typo3v4mvc
mailing list