DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Adding own database marker to a FE-Edit form

If you want to add your custom marker to a frontend edit form, you need to follow these steps:

  1. Create your custom marker according to the previous sub-chapter “Rendering new database fields”, e.g. named “tx_myext_newfield”
  2. Add your marker ###TX_MYEXT_NEWFIELD### to the templates “create_event.tmpl” and “confirm_event.tmpl”
  3. Add some TypoScript setup to replace the marker with valid HTML form data:
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}" />
  }
 }
 confirm_event < create_event
}
  1. Adjust your TS setup to allow the rendering of the marker
plugin.tx_cal_controller.rights {
 create.event {
  additionalFields = tx_myext_newfield
  fields {
   tx_myext_newfield.public= 1
  }
 }
}

With this, your marker should get replaced with the corresponding HTML code, and the value will be stored in the database without additional programming effort.