[ic] Image detail page

Ron Phipps interchange-users@icdevgroup.org
Tue Dec 3 00:04:01 2002


> From: Ian C. Melville
> 
> Hi Everyone,
> 
> 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.
> 
> The variable pointing to the image_large jpeg is for some reason not
> being converted when preview loads after I click my link from the
> flypage so I'm not getting an image :-( Instead I'm getting the
correct
> first part of the url to the image but it ends with something like
> "/[item-field image_large]".
> 
> Can anyone tell me what I'm doing wrong? I fashioned the link on the
> flypage like so:
> [area proview [item-code]] to call the prodview page.
> 

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