[TYPO3-mvc] sr_feuser_register, set tx_extbase_type
Franz Koch
typo3.RemoveForMessage at elements-net.de
Mon Jan 24 18:52:44 CET 2011
Hey Tim,
> I've added these lines to the ext_tables.php of my extension:
>
> // extend sr_feuser_regiser tca
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sr_feuser_register']['extendingTCA'][] = 'extbase';
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sr_feuser_register']['extendingTCA'][] = 'direct_mail';
just had a look at sr_feuser_register again, and noted that
'direct_mail' is included automatically if installed, so you don't have
to include it again (although it shouldn't harm either I think).
> along with this typoscript:
> plugin.tx_srfeuserregister_pi1 {
> create.overrideValues {
> tx_extbase_type = Tx_Alphalyzer_Domain_Model_FrontendUser
> module_sys_dmail_newsletter = 1
> module_sys_dmail_html = 1
> }
> }
>
> I've cleared the cache and double checked with the TSOB.
> Still the same: User is created, the other overrideValues are set, extbase and direct_mail are ignored...
have you added those also to the edit/create field list even if you
might not include them in your templates? Maybe that's the missing
piece. It's at least working for me (having them in the mentioned field
list)
-- constants ---------
plugin.tx_sremailsubscribe.formFields := addToList(
module_sys_dmail_html,module_sys_dmail_cateogry,tx_extbase_type)
----------------------
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list