[TYPO3-english] using tca in jk_poll

Syed Mohammad Anees Masudi anees_masudi at hotmail.com
Wed Jan 21 15:34:06 CET 2009


Hi All
I want to add the select poll functionality to jk_poll ext, for this I have made a mm table named tx_jkpoll_poll_mm, I am trying to make a many to many relationship using tca for it, I have added a form field, field type group, allowed pages in it and can recieve multiple entries in it, the form was making an entry in the db table abc on add poll, I want to add multiple entries in tx_jkpoll_poll_mm table, adding pages.uid into tx_jkpoll_poll_mm.pid and tx_jkpoll_poll.uid into tx_jkpoll_poll_mm.uid_foriegn.
 
I am using this in the tca
 
  "uid" => Array (   "exclude" => 1,   "l10n_mode" => "exclude",   "label" => "Pages",   "config" => Array (    "type" => "group",    "internal_type" => "db",     "allowed" => "pages",    "size" => "3",    "autoSizeMax" => 10,    "maxitems" => "200",    "minitems" => "0",    "show_thumbs" => "1",            'foreign_table' => 'tx_jkpoll_poll_mm',        'mm' => 'tx_jkpoll_poll_mm.pid',   )  )
 
Can anyone help me out, and give the correct tca configuration to retrieve the requirement.
Thanks in advance
 
Anees Masudi
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/


More information about the TYPO3-english mailing list