[TYPO3-english] direct_mail / datamints_feuser, how to set mm relation for module_sys_dmail_category?

Alex Tempara AlexTempara-199882 at yahoo.de
Thu Sep 22 20:12:07 CEST 2011


Hi list.

I try to get run extension 'direct_mail' with 'datamints_feuser' while 
using only fe_user records.

The simple fields 'module_sys_dmail_newsletter' (activate newsletter) 
and 'module_sys_dmail_html' (Receive e-emails as HTML) are set up 
properly and work fine.


But i have big problems to establish the m:m relation for the field 
'module_sys_dmail_category'(Newsletter Categories):

In the simple way datamints_feuser writes the selected values from the 
frontend into fe_user|module_sys_dmail_category, for example 1.
Ofcourse this can't work since you need the related table entries from 
table sys_dmail_feuser_category_mm for this entrie.

datamints_feuser has the fieldconfig mechanism to configure some stuffs, 
but my approach doesn't work.

Does any of you has an idea how to solve this?
I would appreciate it.

thx Alex

My fieldconfig approach:

fieldconfig {
	module_sys_dmail_category {
		config {
			foreign_table = sys_dmail_category
			foreign_table_where = 1
			itemsProcFunc = tx_directmail_select_categories->get_localized_categories
			itemsProcFunc_config {
				table = sys_dmail_category
				indexField = uid
			}
			size = 2
			minitems = 0
			maxitems = 60
			renderMode = checkbox
			MM = sys_dmail_feuser_category_mm
		}
	}
}


More information about the TYPO3-english mailing list