[TYPO3-calendar] hook to substitute custom marker

Mario Matzulla mario at matzullas.de
Tue May 31 11:32:54 CEST 2011


Hi Martin,

Am 31.05.11 11:19, schrieb Martin Keller:
> Dear list,
> to bring in custom values to a create event form, I extended
> create_event.tmpl with a line like
>
> <input type="hidden" name="tx_cal_controller[refpid]" value="###REFPID###">
>
> Then I created a createEventClass-hook called "preCreateEventRendering".
> This hook is called with &$obj, $getDate and $pidList. I studied &$obj
> to find any template or marker stuff to manipulate, but there seems to
> be nothing useful in there.
>
> How can I replace ###REFPID### in the form with my value in the hook?
> Is this hook the right place to look for?

There is no need to use a hook, everything can be done through TS. 
Please compare the other marker and their TS configuration - the correct 
naming is the key ;)

Regards,
Mario
>
> Lateron, I plan to hand it over to confirm_event and save_event, where I
> can store the custom values to DB. This question is related to the
> thread "flexible saveEventToPid? 13.05.2011 16:03"
>
> Any clue?
> Martin



More information about the TYPO3-project-calendar mailing list