[TYPO3-calendar] Derivation override in template

Mario Matzulla mario at matzullas.de
Wed Nov 5 08:54:15 CET 2014


Hi Sebastian,

Am 04.11.14 um 18:12 schrieb Sebastian Reinhardt:
>> Well, that depends on what you want to change:
>>
>> The default location output is the name and can be configured by:
>> plugin.tx_cal_controller.view.{view}.event.location (cObject)
>>
>> If you have location information through a module marker:
>> plugin.tx_cal_controller.view.{view}.location.{attribute} (cObject)
>>
>> And for a location view:
>> plugin.tx_cal_controller.view.location.location.{attribute} (cObject)
>>
>> Regards,
>> Mario
> 
> I try to change the plugin.tx_cal_controller.view.{view}.event.location
> (cObject)
> 
> that works, when i just insert the Location string inside the
> input-field "Ort". (using the code above).
> But the Locations are in the "Eingetragener Ort" field. So thes are not
> directoy in the table tx_cal_event. i think i have to use the
> location_id, but i have no clue at the moment, how i could add a Wrapper
> for teh derivation if the location is set via the field location_id  not
> location...
> 

I have not checked this, but something like this should work:

plugin.tx_cal_controller.view.event.event.location {
  override.if.isTrue.field = orig_start_date
  override.cObject = COA
  override.cObject.5 = LOAD_REGISTER
  override.cObject.5.overlayEventLocation.cObject = TEXT
  override.cObject.5.overlayEventLocation.cObject.data = field:location
  override.cObject.10 = RECORDS
  override.cObject.10 {
    source.field = location_id
    dontCheckPid = 1
    tables = tx_cal_location
    conf.tx_cal_location = TEXT
    conf.tx_cal_location {
      stdWrap.if.value.field = name
      stdWrap.if.equals.data = register:overlayEventLocation
      stdWrap.if.negate = 1
      stdWrap.dataWrap =  <span class="changedValue">{register:overlayEventLocation}</span>
    }
  }
}

Regards,
Mario

> 
> 



More information about the TYPO3-project-calendar mailing list