Gossamer Forum
Quote Reply
attachment plugin
Hi Yogi,

We are using your attachment plugin for images attachments (6 images per link) and it is working quite good.
One thing, I need to use the attached JavaScript to view the images of the link. At a certain point i have to Change the below variables to reference our own images. We may have as many images in the slider as we wish*/
i.e:
photos[0]="/Arcdetri.jpg"
photos[1]="/Badland.jpg"
photos[2]="/Battle2.jpg"
photos[3]="/Beach.jpg"
photos[4]="/Alaska.jpg"
photos[5]="/Alaska.jpg"

Could you gently help me to attribute to
photos[0]="/ (the first image as set per your plugin)
photos[1]="/ (the second image as set per your plugin)
etc....

Thanks
Antoine

Quote Reply
Re: [antoined] attachment plugin In reply to
You should be able to do the following within your javascript (provided it is parsed by the template parser):
Code:
<%loop link_attachments%>
photos[<%row_num - 1%>]="<%att_url%>"
<%endloop%>

Ivan
-----
Iyengar Yoga Resources / GT Plugins

Last edited by:

yogi: Feb 15, 2004, 12:26 PM
Quote Reply
Re: [yogi] attachment plugin In reply to
Thanks Ivan, but how to find the right <%url%> of the right photo?

my domain /cgi-bin/eodata/jump.cgi?att_id=3;att_unique=d5bd29c12dc84b38de99d3900489b389 ???

only <%url%> is giving the following error: Unknown Tag: 'url'"

photos[0]="Unknown Tag: 'url'"
photos[1]="Unknown Tag: 'url'"
photos[2]="Unknown Tag: 'url'"
photos[3]="Unknown Tag: 'url'"


Thanks again
AntoineBlush

Last edited by:

antoined: Feb 15, 2004, 11:20 AM
Quote Reply
Re: [antoined] attachment plugin In reply to
Sorry, my fault. I have corrected the code above, it is now <%att_url%> instead of <%url%>, which was wrong.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] attachment plugin In reply to
Thanks IVAN it works.
Antoine
Quote Reply
Re: [yogi] attachment plugin In reply to
Hi Ivan,
Is it possible to upload all attachement files (i.e. 4 files) once and not one by one?

Thanks
Antoine