[TYPO3-calendar] custom marker in FE forms

Mario Matzulla mario at matzullas.de
Wed Jun 1 13:22:39 CEST 2011


Hi Martin,

Am 01.06.11 11:27, schrieb Martin Keller:
> Dear list,
> My custom field does not become updated in DB.
>
> This is what I did:
>
> 1) RTFM: cal extension documentation "Adding own markers" around page 53
>
> 2) Extend table tx_cal_event with tx_myext_newfield
>
> 3) Add marker ###TX_MYEXT_NEWFIELD### to templates create_event.tmpl and
> confirm_event.tmpl
>
> 4) TS setup to replace marker with some value
> plugin.tx_cal_controller.view {
> create_event {
> tx_myext_newfield_stdWrap {
> dataWrap = <input type="hidden"
> name="tx_cal_controller[tx_myext_newfield]" value="{GP:someGPvar}" />
> }
> }
> (same for confirm_event)
>
> 5) TS setup to allow rendering of marker
> plugin.tx_cal_controller.rights {
> create.event {
> #saveEventToPid = {GP:refpid}
> fields {
> tx_myext_newfield.public= 1
> }
> }
> }
> (if rights is missing, the field will not be rendered in the form)
>
> 6) The marker becomes replaced with markup and value as expected
>
> I expect to have the field updated automatically, but its not.
> What is missing?

# @description	Comma separated list of fields, that are not shipped with 
the standard cal extension, but are to be saved inside the tx_cal_event 
record
plugin.tx_cal_controller.rights.create.event.additionalFields = 
tx_myext_newfield

Regards,
Mario
>
>
> BTW: This marker treatment is exemplary for Typo3 extensions! (Thank you
> Mario)
>



More information about the TYPO3-project-calendar mailing list