[TYPO3-calendar] yearview and title for allday events

Ryan Kristensen ryankristensen at hotmail.invalid
Tue Mar 6 15:46:34 CET 2012


Hi.

After further testing I found that the title for allday events only are 
missing when useNewTemplatesAndRendering is set.
In view/class.tx_cal_new_weekview.php from line 144-146 in the function 
addEvent:
if(is_object($this->days[$eventStart->format('%Y%m%d')])){
	$this->days[$eventStart->format('%Y%m%d')]->hasAlldayEvents = true;
}
If I add this line inside the if-statement everything works:
$this->days[$eventStart->format('%Y%m%d')]->addEvent($event);

Is this a bug?

Regards,
Ryan

Den 13-01-2012 20:07, Mario Matzulla skrev:
> Hi Ryan,
>
> Am 13.01.12 10:34, schrieb Ryan Kristensen:
>> Den 12-01-2012 20:11, Mario Matzulla skrev:
>>
>>>> How do I make it write the title (<li>###TITLE###</li>) for allday
>>>> events in year-view?
>>>
>>> Please have a look at the TEMPLATE_PHPICALENDAR_EVENT_YEAR_ALLDAY
>>> subpart of the event_model.tmpl. Second, please check the
>>> year.event.alldayTitle typoscript configuration
>>
>> Hi.
>>
>> The TEMPLATE_PHPICALENDAR_EVENT_YEAR_ALLDAY subparts look like this:
>> <!--###TEMPLATE_PHPICALENDAR_EVENT_YEAR_ALLDAY### begin -->
>> <li>###TITLE###</li>
>> <!--###TEMPLATE_PHPICALENDAR_EVENT_YEAR_ALLDAY### end -->
>>
>> The year.event.alldayTitle typoscript configuration from the Typoscript
>> object browser is:
>> alldayTitle = TEXT
>> alldayTitle {
>> current = 1
>> crop = 15|..
>> }
>>
>> Is there anything i'm missing?
>
> Are those normal or recurring events, which are missing the title? Can
> you provide an example so we can try to reproduce the issue?
>
> Regards,
> Mario
>
>>
>> Regards,
>> Ryan
>>
>



More information about the TYPO3-project-calendar mailing list