[TYPO3-calendar] Need eventLink as eventUrl in list view

Stig Nørgaard Færch snf at dkm.dk
Mon Jan 30 10:23:58 CET 2012


>>> function getEventUrlMarker(& $template, & $sims, & $rems, & $wrapped,
>>> $view) {
>>> $eventStart = $this->getStart();
>>> $sims['###EVENT_URL###'] =
>>> htmlspecialchars($this->getLinkToEvent('|',$view,
>>> $eventStart->format('%Y%m%d'),true));
>>> }

>>> function getAdditionalValuesAsArray() {
>>> $values = parent::getAdditionalValuesAsArray();
>>> $values['event_owner'] = $this->getEventOwner();
>>> $values['cruser_id'] = $this->getCreateUserId();
>>> if($this->conf['view.']['enableAjax']){
>>> $template = '';
>>> $sims = Array();
>>> $rems = Array();
>>> $wrapped = Array();
>>> $this->getEventUrlMarker($template, $sims, $rems, $wrapped, 'event');
>>> $values['event_link'] = $wrapped['###EVENT_URL###'];
>>> }
>>> return $values;
>>> }
>>
>> Those values are additinally available in the TS.
>
> you mean event_owner, cruser_id and event_link?

Another discovery:

If I set:
plugin.tx_cal_controller.view.enableAjax = 1

Then event_link is present in the array, though empty.


This is also what I found.
if($urlOnly){
	return 
$this->local_cObj->cObjGetSingle($this->conf['view.'][$view.'.'][$this->getObjectType().'.'][$this->getObjectType().'Url'],$this->conf['view.'][$view.'.'][$this->getObjectType().'.'][$this->getObjectType().'Url.']);
}

I debugged a little and found that it looks for:
$this->conf['view.']['event.']['event.']['eventUrl']
eventUrl is not present here in typoscript setup.

only in the rss part of the setup.

But then again, it shouldn't be required to set enableAjax = 1 to make 
it work, right?


More information about the TYPO3-project-calendar mailing list