David,
I'm not familar with iframes so don't know how to implement something in
them. But here is an example of what I think you want to do in a regular
page.
Go to
www.beeutahful.com/store/index.html This is the main page of my
store. The navigation tabs (bobbins, new items, woods etc) are links to
categories (pages) of items that I sell or to informational pages. The tab
links come from the page template [-- DEFINE LINK_TO_PAGE --] section of
the template.
Click on the Woods tab. This is a page showing thumbnails for a number of
different types of woods that the shopper could choose from. In this case
these are not saleable products but are implemented as products. They
would represent the thumbnails that you have on your first iframe. If you
click on one of the thumbnails you will be taken to a moreinformation
page. The link for these images is coming from the product template and
uses the file name from the product moreinfo filename field. Clicking on
one of your thumbnails should open your second iframe with the
moreinformation page of your products.
Below is the product template that I designed to display the product as
just an image and name both of which are links to the moreinfo page for
the product which contains a larger image and description. (in your case
you would want to put your add and view cart buttons).
----------------------
[--DEFINE PRODUCT--]
center
table border="0"
tr
td width="120" align="center"><a href="[-- PRODUCT.MoreInfoURL --]">[--
PRODUCT.Graphic --]</a></td></tr
tr> <td valign="top" align="center"><a href="[--
PRODUCT.MoreInfoURL --]"
[-- PRODUCT.Name--]</a></td></tr
/table></center
[-- END_DEFINE PRODUCT--]
[-- DEFINE MORE_INFO_PAGE--]
html
head
title>[-- PRODUCT.Name --]</title
/head
body background="[-- MORE_INFO.BackgroundImage--]" text="[--
MORE_INFO.TextColor --]"
blockquote
[-- IF MORE_INFO.DisplayPageHeader --]
[-- HEADER --]
[-- END_IF --]
center
table width=400 border=0
tr><td align=center
h2>[-- PRODUCT.Name --]</h2
/td></tr><tr><td
[-- PRODUCT.MoreInformationGraphic --]
/td></tr
[-- if PRODUCT.FIELD1 --]
TR><TD><center
[-- CALL inf.pl (OUTPUT_DIRECTORY_PATH, product.field1) --]
/center></TD></TR
[-- END_IF --]
tr><td
[-- PRODUCT.MoreInformationText --]
/td></tr
/table></center
[--IF MORE_INFO.DisplayPageFooter--]
[--FOOTER--]
[--END_IF--]
/blockquote
/body
/html
[-- END_DEFINE MORE_INFO_PAGE--]
----------------------
You would need to modify the moreinfo links such as
a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Graphic --]</a
above to open your second iframe. I don't know how you would do that but
it shouldn't be too difficult if you are use to creating such links and
may be something like:
a target="mainframe" href="[-- PRODUCT.MoreInfoURL --]">[--
PRODUCT.Graphic --]</a
where the "mainframe" would be your secondary frame.
Hope that helps.
Jim
David House wrote:
So, I've read that it looks like I need the thumbnails to link to
moreinfo pages in the second iframe....
"David House" <davidhouse@housearts.com> wrote in message
news:d4tqr8$g0g$1@eval.shopsite.com...
Let me describe what I'm attempting. The site is laid out this way:
Home page --> Main Product Category
Main Product Category includes 2 iframes:
1. Thumbnail images of products that are scrollable across the bottom
of the page. If the user clicks one of the thumbnails...
2. The full-sized image opens in the frame in the top part of the
page. This second iframe is really an included page of product with 'Add
to Cart', 'View Cart' links. (I'm hoping to have the shopping cart
pop-up in a separate window.)
I'm new to ShopSite (I'm a ColdFusion coder), so I'm not sure of the
differences you're describing very well. So, what other way of coding
this might I use?
Thanks!
"jim" <jstavast@xmission.com> wrote in message
news:d4tb79$80a$1@eval.shopsite.com...
So are the links "moreinfo page" links or links to other "store" pages?
The way you have it coded the link is to another "store" page not to a
"moreinfo" page as you have described. If you want this to happen from
a product to its "moreinfo" page you would need to change the code in
the product template being used.
Jim
David House wrote:
I should have mentioned that I'm trying to link from thumbnail images
in one iframe to larger images (with price and 'add to cart') in
another iframe (mainframe) on the same page. All other frame elements
work until I click the link that should show the full sized image. Make
sense?
"David House" <davidhouse@housearts.com> wrote in message
news:d4sea5$ths$1@eval.shopsite.com...
Hello,
I'm trying to get iframes to work properly on my site. Everything
seems to be fine except that I can't get the target attribute to show
up in my final HTML.
It's placed properly at the beginning of the template:
[-- DEFINE LINK_TO_PAGE --]
[-- IF PAGE.LinkGraphic --]
a target="mainframe" href="[-- OUTPUT_DIRECTORY_URL --]/[--
Page.FileName --]"><img [-- PAGE.LinkGraphic REMOVE_HTML --]
align="middle"></a
[-- END_IF --]
...and seemingly later:
!-- Begin Table of Product Thumbs --
table border="0" align="center" cellpadding="0" cellspacing="0"
tr valign=top
[-- LOOP LINKS --]
td align="center" valign="top"
[-- LINK --]
/td
[-- END_LOOP LINKS --]
/tr
/table
!-- End Table of Product Thumbs --
...but the final HTML looks like this:
!-- Begin Table of Product Thumbs --
table border="0" align="center" cellpadding="0" cellspacing="0"
tr valign=top
td align="center" valign="top"
a href="http://mystore.com/store/test3.html"><img
src="http://mystore.com/store/media/rr10_compan_thmb_silver.jpg"
width=77 height=75 alt="rr10_compan_thmb_silver.jpg" hspace=3 vspace=3
border=0><b
rr-Companions (silver)</b></a
/td
/tr
/table
The attribute target="mainframe" should be showing up in the HTML
output, right?? What da heck am I missing here? The iframe seems to
work perfectly otherwise in the template.
Thanks for your help!