[ic] Image detail page

Michael Goldfarb interchange-users@icdevgroup.org
Tue Dec 3 12:49:01 2002


>Michael,
>
>That was so simple it made me laugh out loud ;-) I tried a few things
>unsuccessfully and then thought along the lines you pointed me but
>didn't actually try it until your note and its just right. Thanks!
>
>I even tried going for broke and chucked it into the page title but I
>guess I was finally out of wishes... If you have a suggestion for code
>to place the same text into page title I'll be grateful for it
otherwise
>I'll just stick to my boilerplate 'View Product Detail' text.
>

Try adding something like this to the top of your HTML file:

[tmp page_title][data table=products field=description key='[scratch
code]'][/tmp]

Make sure that you overwrite the [tmp page_title] if it is already on
the page that you are editing.

I think this is what you are asking for :)

-----Original Message-----
From: interchange-users-admin@icdevgroup.org
[mailto:interchange-users-admin@icdevgroup.org] On Behalf Of Michael
Goldfarb
Sent: Tuesday, December 03, 2002 11:43 AM
To: interchange-users@icdevgroup.org
Subject: RE: [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?
>

Just change the "field=image_large" to "field=description"


-----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



_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users