[TYPO3-calendar] No ###ATTACHMENT### after Update php-version to 5.4, Typo3 to 4.5.25 and cal to 1.5.2

Mario Matzulla mario at matzullas.de
Fri Apr 5 20:58:24 CEST 2013


Ok, I found it:

"$GLOBALS['TSFE']->loadTCA()" inside the css_styled_content clears the 
needed value.

In newer versions this line changed to "t3lib_div::loadTCA('tt_content');"

Fix:
For 4.5.x move the following lines from the end of the tca.php to 
extTables.php:
if 
(t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) 
 >= 4003000) {
	t3lib_div::loadTCA('tt_content');
	$GLOBALS['TCA']['tt_content']['columns']['tx_cal_media']['config']['uploadfolder'] = 'uploads/tx_cal/media';
}

Regards,
Mario

Am 05.04.13 14:17, schrieb Mario Matzulla:
> Hi Stephan,
>
> 2 things I've found out:
>
> first: I can reproduce this issue with a 4.5.25 installation locally.
> second: it is due to a missing configuration:
> $GLOBALS['TCA']['tt_content']['columns']['tx_cal_media']
>
> The strange thing is, that we add it in tca.php line 2984 and it is gone
> when cal is called the first time :(
>
> I have no clue WHY this is happening and why it is in 4.5.x and not in
> 4.7.x
>
> Regards,
> Mario
>
> Am 03.04.13 15:54, schrieb Stephan Grass:
>> Hi Mario,
>>
>> I don't use DAM. And I don't change anything. The Marker will work, I
>> can print out the filename, the attachement-label will shown, filePath
>> is correct… But no output by default:
>>
>> plugin.tx_cal_controller.view.event.event.attachment =<
>> tt_content.uploads
>> plugin.tx_cal_controller.view.event.event.attachment {
>>            layout = 1
>>           showFileSize = 1
>>            filePath = {$plugin.tx_cal_controller.uploadPath.media}
>>            20.stdWrap.if.isTrue.field = attachment
>>            20.stdWrap.dataWrap =
>> <div>%%%ATTACHMENT_LABEL%%%:&nbsp;|</div>
>>          }
>>
>>
>>
>> Stephan
>>
>>
>>
>>
>> On 2013-04-03 12:24:07 +0000, Mario Matzulla said:
>>
>>> Hi Stephan,
>>>
>>> Am 02.04.13 17:55, schrieb Stephan Grass:
>>>> Hi,
>>>>
>>>> because 1&1 update php to 5.4 I  must update typo3 to 4.5.25 and cal to
>>>> 1.5.2.
>>>>
>>>> Now no attachement will be shown. Any idea?
>>>
>>> Do you use DAM?
>>> Did you change anything besides the sources?
>>>
>>> Please hava a look at this article [1]
>>>
>>> Regards,
>>> Mario
>>>
>>> [1]
>>> http://www.herzogkienast.de/typo3-cms/kleine-helfer/artikel/artikel/dam-und-calendar-base-atttachments-fehlen-nach-update-auf-typo3-4524.html
>>>
>>>
>>
>>
>> Stephan
>>
>>
>>>
>>
>



More information about the TYPO3-project-calendar mailing list