[TYPO3-calendar] Derivation override in template

Sebastian Reinhardt s.reinhardt at sevensix.eu
Tue Nov 4 16:46:36 CET 2014


Hello,

I "override" the current Event output in the frontend (eg. Description) 
by using this typoscript to get a wrapper for derivation:
#########
plugin.tx_cal_controller.view.event.event.description {
   override.if.isTrue.field = orig_start_date
   override.cObject = COA
   override.cObject.5 = LOAD_REGISTER
   override.cObject.5.overlayEventDescription.cObject = TEXT
   override.cObject.5.overlayEventDescription.cObject.data = 
field:description
   override.cObject.10 = RECORDS
   override.cObject.10 {
     source.field = uid
     dontCheckPid = 1
     tables = tx_cal_event
     conf.tx_cal_event = TEXT
     conf.tx_cal_event {
       stdWrap.if.value.field = description
       stdWrap.if.equals.data = register:overlayEventDescription
       stdWrap.if.negate = 1
       stdWrap.dataWrap =  <span 
class="changedValue">{register:overlayEventDescription}</span>
     }
   }
}
plugin.tx_cal_controller.view.day.event.description < 
plugin.tx_cal_controller.view.event.event.description
  ###############

That works great.

Now i tried to use this same aproach for the location, but this isn't 
working. The problem is, that the location is not entered in the normal 
location field ("Ort"), it is a record to the location ("Eingetragener 
Ort").

Does anybody hav got an idea, how i could wrap the locations in this 
case (when i use database records for the locations)?

thx for help

Sebastian


More information about the TYPO3-project-calendar mailing list