[TYPO3-english] typoscript: get rid of image reference number

Jost Baron Jost.Baron at gmx.de
Thu Nov 8 21:10:40 CET 2012


Hi Katja,

would it be possible to simply link to "uploads/pics/myimage.jpg" 
instead? As far as I know every image is copied to that folder and then 
used from there. The "_01" appended to the filename results from the 
need of unique filenames in that folder.

Regards,
Jost

On 11/08/2012 09:03 PM, Katja Lampela wrote:
> Hi,
>
> I have a typoscript situation where I need two different path links to
> one uploaded image. Let me explain.
>
> The database has high resolution press images which I want to show with
> typoscript as a small image (from uploads/myext/ folder) and as a
> download link from the original fileadmin/highres folder.
>
> Basically I need something like:
>
> <a href="fileadmin/highres/myimage.jpg"><img
> src="uploads/myext/myimage.jpg" />
>
> The "myimage.jpg" is uploaded in backend record. Problem arises when the
> image is uploaded second time, then we have
>
> <a href="fileadmin/highres/myimage_01.jpg"><img
> src="uploads/myext/myimage_01.jpg" />
>
> and of course there is no myimage_01.jpg in fileadmin/highres and the
> link doesn't work anymore.
>
> So now I need a clever way to either crop the _number part from link or
> force the image upload always keep the original name.
>
> Any ideas or is it even possible?
>
>
>
>


More information about the TYPO3-english mailing list