[TYPO3-calendar] custom marker in FE forms
Martin Keller
martin at salsa.de
Wed Jun 1 11:27:59 CEST 2011
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?
BTW: This marker treatment is exemplary for Typo3 extensions! (Thank you
Mario)
More information about the TYPO3-project-calendar
mailing list