[TYPO3-english] Get image data without actually showing the image

Andreas Kießling andreas.kiessling at web.de
Thu Mar 18 09:16:44 CET 2010


Hi Jochem,

If you want the path to the image, use IMG_RESOURCE. The register is 
only filled, if the cobject is used somewhere.

Do NOT use IMG_RESOURCE and read the path from the register. That 
cobject already gives you what you want: the path to your image. Use the 
register if you need the path twice, like: display the image and provide 
a link to the image right below the image.


I only referenced the different register to give a complete answer, 
since this can be confusing when you don't know the difference between 
the two cobjects and that they have different registers.


Regards,
Andreas


More information about the TYPO3-english mailing list