[Typo3] Getting name of the imported file in the IMAGE object

Christopher bedlamhotel at gmail.com
Wed Dec 21 16:40:20 CET 2005


Hi,

On 12/21/05, Dmitry Dulepov <typo3 at fm-world.ru> wrote:
> Hi!
>
> I have the following TS (it is in TemplaVoila DS if it matters):
>         10 = IMAGE
>         10.file.import = uploads/tx_templavoila/
>         10.file.import.current = 1
>         10.file.import.listNum = 0
>         10.file.maxW = 66
>
> It produces something like:
> <img src="typo3temp/temp_12345.jpg" width="40" height="50" alt="" />
>
> What I need is:
> <a
> href="javascript:alert('uploads/templavoila/orifiginal_file_01.jpg')"><img
> src="typo3temp/temp_12345.jpg" width="40" height="50" alt="" /></a>
>
> Here "uploads/templavoila/orifiginal_file_01.jpg" is the file that IMAGE
> object processes. "10.file" is empty, I tried it. Various imageLinkWrap
> properties allowed me to get original file name in a link to
> showpic.php. But I need to supply my own url. imageLinkWrap allows this
> but it does not pass file name to this url.
>
> So I am stuck. Does anyone know the solution?


So you need the processed image name and the unprocessed name too?
Change your TS above to this, and see if it works for you:

         10 = IMG_RESOURCE
         10.file.import = uploads/tx_templavoila/
         10.file.import.current = 1
         10.file.import.listNum = 0

...since you're not doing any work on the image, you should just get
the path to the original I think (or at least the path to the
un-altered copy that T3 may make which should be good enough..?)


-Christopher



More information about the TYPO3-english mailing list