[TYPO3-dev] Problems with image paths using FAL

JoH asenau info at cybercraft.de
Wed Nov 6 18:47:33 CET 2013


Hi everybody

Don't know if this a bug or done intentionally, but when using the method

FrontendContentAdapterService=>modifyDBRow

you will get image paths that always start with '../../'

This is due to line 108:

$fileFieldContents['paths'][] = '../../' . $file->getPublicUrl();

On the other hand the stuff added here gets removed in line 308 of

\TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::render_uploads

if (GeneralUtility::isFirstPartOfStr($fileName, '../../')) {
     $currentPath = '';
     $fileName = substr($fileName, 6);
}

Currently we are using the first method within Gridelements without 
stripping the superfluous parts again, which seems to be problematic for 
people who want to use these images with Fluid template. So the question 
is: Is there any good reason, why they are prepended to each and every 
image path?

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com



More information about the TYPO3-dev mailing list