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 markers¶
If you want to add your own markers – filled by some own TypoScript – all you need to add is
- the marker itself to the corresponding model and
- fill the marker with something meaningful
For example, if you want to add some fixed text to every output that gets rendered in the list view as “odd” event, open event_model.tmpl, search for the marker named “TEMPLATE_PHPICALENDAR_EVENT_LIST_ODD” and add your own marker “###MYSTATICTEXT###”.
Then, add the following snippet to your TS:
plugin.tx_cal_controller.view.list.event.mystatictext = TEXT
plugin.tx_cal_controller.view.list.event.mystatictext.value = test123
Please notice that this TypoScript will override any existing value (e.g., coming from the database itself). To avoid this, use the .current attribute (refer to Typo3 TS core documentation for details):
plugin.tx_cal_controller.view.list.event.mystatictext = TEXT
plugin.tx_cal_controller.view.list.event.mystatictext {
# inject the value from the DB
current = 1
# or use a special field from the DB
#field = agenda
wrap = The content is here >>|<<
}