[TYPO3-templavoila] Thumb generation of DS and TO previewIcon

Steffen Kamper info at sk-typo3.de
Mon Mar 9 16:11:29 CET 2009


Ian Solo schrieb:
> Hi,
> Steffen Kamper wrote:
>> i found the readson, icon path is set by 
>> t3lib_div::getIndpEnv('TYPO3_SITE_URL'), generated path will be
>> gfx/http://...
>> as it is used in inline-css it has to be relative, so correct path 
>> would be
>> $iconPath = '../../uploads/tx_templavoila/';
>> not nice i know, do you have a better idea?
> What about make a left trim of the first 4 characters?
> Too bad hack? :P
> Regards,
> ian

yes, bad hack :-)

look to t3lib_TCEforms:getIcon

path is calculated correct when it starts with ../

vg Steffen

More information about the TYPO3-project-templavoila mailing list