[Typo3] how to debug tt_address insertion (dmail)
Felix Natter
felix.natter at ldc.de
Tue Jul 26 11:15:58 CEST 2005
"Mathias Schreiber [wmdb]" <mathias.schreiber at wmdb.de> writes:
> Felix Natter wrote:
> > hi,
> > I am having problems with adding gender information to the directmail
> > subscription dialog. I tried to post to typo3.projects.direct-mail
> > but it looks like I am getting no reply.
> > Basically the problem ist that I did these things:
> > - add a field gender to tt_address (char(1) not null)
> > - add a field to the array in class.t3lib_dmailer.php
> > - modify the dmail subscription template to include a
> > <input type="text" name="FE[tt_address][gender]">-block
> > But when I enter "m" for gender and submit, the new db record has an empty
> > gender (tt_address.gender='').
> > I tried to set $debugOutput=true in t3lib/class.t3lib_db.php, but I get no
> > error
> > output.
> > How can I debug this (where is the dmail_subscription code that fills in
> > the tt_address record)?
>
> Is the field availabe in TCA?
No. Should I modify /typo3/ext/tt_address/tca.php to include a gender column
like this?:
'gender' => Array (
'exclude' => 0,
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.gender',
'config' => Array (
'type' => 'radio'
'items' => Array (
Array('Frau', 'w'),
Array('Herr', 'm')
)
)
),
(should I use type='passthrough' instead?)
I also tried to modify /typo3/ext/direct_mail/ext_tables.php:
// tt_address modified
t3lib_div::loadTCA('tt_address');
t3lib_extMgm::addTCAcolumns('tt_address',array(
'module_sys_dmail_category' => Array('config'=>array('type'=>'passthrough')),
'module_sys_dmail_html' => Array('config'=>array('type'=>'passthrough')),
'gender' => Array('config' => array('type' => 'passthrough'))
));
$TCA['tt_address']['feInterface']['fe_admin_fieldList'].=',module_sys_dmail_category,module_sys_dmail_html,gender';
but how can I execute this addTCAcolumns without deleting and reinstalling the
dmail extension (which is already configured)?
thanks!
--
Felix Natter
More information about the TYPO3-english
mailing list