[TYPO3-mvc] Access plugin mode from within the plugin

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu Jan 20 13:30:45 CET 2011


Hey BlaFaselBlubb,

> when I create a page content element for a plugin I can set a plugin
> mode. Now I would like to access that using the extbase API but can't
> find any hints howto do that (I might be just shortsighted...).
>
> Any pointers?

It's encouraged to use flexforms because they are much more userfriendly 
and their values can automatically be merged into $this->settings. But 
you can access the DB values of your CE (and thus fetch the value from 
the plugin mode field) via $cObjectData = 
$this->request->getContentObjectData() in your controller.


Btw - according to the mailing-list/newsgroup guidlines it'll be nice if 
you would enlighten us with your real name. Many of the followers and 
supporters in the newsgroups don't answer questions of anonymous posters 
- as I won't from now on. Thanks.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list