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

Mario Matzulla mario at matzullas.de
Mon Jan 30 16:31:59 CET 2012


Hi Stig,

alright, I tested it in my local install and in the event view the 
marker isn't filled right away, so I added this little TS:

plugin.tx_cal_controller.view.event.event {
eventUrl < plugin.tx_cal_controller.view.event.event.eventLink
eventUrl.typolink.returnLast = url
}

And now it works :)

Regards,
Mario

Am 30.01.12 10:23, schrieb Stig Nørgaard Færch:
>>>> 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