[TYPO3-calendar] flexible saveEventToPid?

Martin Keller martin at salsa.de
Tue May 31 17:57:16 CEST 2011


TS and marker in the template for the forms, a hook for preSaveEvent
Thats it!

class tx_mkcalsavepid_saveEventClass {
   function preSaveEvent (&$obj) {
     $gp = t3lib_div::_GPmerged('tx_cal_controller');
     $refpids=explode(',',$gp['refpid']);
     $refpid= intval($refpids[0]);
 
$obj->getDateTimeObject->conf['rights.']['create.']['event.']['saveEventToPid'] 
= $refpid;
   }
}

Thank you Mario!

see also: "hook to substitute custom marker" 31.05.2011 11:19
(lesson learned)


More information about the TYPO3-project-calendar mailing list