[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Image detail page
Thanks Ron & Jeff for your generous assistance!
Ron: you seem to know interchange as well as the back of your hand ;-)
Thank you ever so much. Knowing what is wrong and what needs to be done
is one thing but knowing *how* to do it is entirely another. I knew only
the first part ;-)
Need I say the changes you suggested worked like a charm. The only other
item missing is a title for below the image and its already in the
table. Do I call the title using the same 'scratch code' variable?
Cheers!
Ian C. Melville
FRONTLINE MARKETING AGENCIES
Trinidad & Tobago, West Indies
-----Original Message-----
From: interchange-users-admin@icdevgroup.org
[mailto:interchange-users-admin@icdevgroup.org] On Behalf Of Ron Phipps
Sent: Tuesday, December 03, 2002 12:52 AM
To: interchange-users@icdevgroup.org
Subject: RE: [ic] Image detail page
> I've been beating my head trying to figure this out and I feel that
> there's a simple way but I can't see it. perhaps someone can help me:
>
> On my flypage where the thumb of the product appears I had put in a
link
> (on the image itself) pointing to a larger image, namely
"image_large".
> This worked fine but the image would load by itself in the browser.
> Today I created a new page named proview with top and bottom-content
in
> the middle and tried putting in there a table with the image and in so
> doing hit a brick wall.
>
Call your page like this:
[area href=prodview arg='[item-code]']
And then on your prodview page use this code to return the image name:
[tmp code][data session arg][/tmp]
<img src="[data table=products field=image_large key='[scratch code]']">
The reason your other code was not working was because prodview is not a
"flypage" like your other page so it does not know what "[item-field]"
is. So we pass the [item-code] as an argument and than use the data tag
to look up the image_large value for that item.
Good luck,
-Ron