template problems

General ShopSite user discussion

template problems

Postby luciano991 » Sat Oct 13, 2007 11:13 am

I have been trying to insert a picture into this page: http://www.xmasdays.com/lynnhaney.html. I have followed the directions for inserting a banner graphic but the image just won't appear. I suspect a problem with my template. I was looking for a plae to attach it but my apologies for reprinting here. Thanks

[--DEFINE LINK_TO_PAGE--]
# This define is used to control how the link to this page will
# look on other pages
[--END_DEFINE LINK_TO_PAGE--]

[-- DEFINE PAGE --]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[-- VAR.MoreInfoTemplate xdays-MoreInfoPage --]
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<script language="JavaScript">
<!--
function showPicture(picNum) {
wHeight = 620;
wWidth = 620;
win = this.open(picNum, "picWin", "toolbar=no,menubar=yes,location=no,scrollbars=no,resizable=yes,width=" + wWidth + ",height=" + wHeight + ",screenX=0,screenY=0,left=0,top=0");
}
//-->
</script>


[-- IF PAGE.Title --]<title>[-- PAGE.Title --]</title>[-- ELSE --]<title>[-- PAGE.Name --]</title>[-- END_IF --]
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="http://www.xmasdays.com/templates/xdays_home/xdays_prodpage.css" type="text/css"/>
[-- INCLUDE xdays_prodpage.css PROCESS --]
</head>

<body>
<table class="clearlines" width="770">
<tr>
<td id="logo"><img src="http://www.xmasdays.com/templates/xdays_home/images/Logo.gif" width="133" height="113" alt="Christmas Days Logo" /></td>
<td id="topscroll"><img src="http://www.xmasdays.com/templates/xdays_home/images/top_scroll.gif" alt="Christmas Days Arlington Vermont" width="663" height="63" align="top" /></td>
</tr>
<tr>
<td class="leftnav" valign="top"><ul>
<li><a href="http://www.xmasdays.com">Christmas Days Home</a></li>
<li><a href="http://www.xmasdays.com/store/nativities.html">Nativity Collections</a></li>
<li><a href="http://www.xmasdays.com/store/lynnhaney.html">Lynn Haney Collection</a></li>
<li><a href="http://www.xmasdays.com/store/pipka.html">Pipka Collectibles</a></li>
<li><a href="http://www.xmasdays.com/store/byerschoice.html">Byer's Choice Carolers</a></li>
<li><a href="http://www.xmasdays.com/store/oldworldxmas.html">Old World Christmas</a></li>
<li><a href="http://www.xmasdays.com/store/vtornaments.html">Vermont Ornaments</a></li>
</ul>
</td>



<td >
<table cellpadding="5" cellspacing="0" width="98%" border="0">
<tr>
<td id="prodtext1">

[-- IF PAGE.DisplayGraphic --]
[-- IF PAGE.Graphic --]
[-- VAR.PageGraphic PAGE.Graphic --]

[-- END_IF --]
[-- END_IF --]

<p><h1>[-- PAGE.Name --]</h1></p>

[-- IF PAGE.Text1 --]

<p>[-- PAGE.Text1 --]</p>

[-- END_IF --]
</td>
</tr>
<tr>
<td class="posprodstable">


[-- IF PAGE.NumProducts 0 --]
# skip this section
[-- ELSE --]

<table class="Products" width="100%" align="center" border="[-- VAR.border --]" cellpadding="3">
[-- LOOP PRODUCTS PAGE.Columns --]
<td valign="top" align="[-- VAR.align --]">[-- PRODUCT --]</td>
[-- END_LOOP PRODUCTS --]
</table>
[-- END_IF --]


</td>
</tr>
<tr>
<td>[-- IF PAGE.Text3 --]

<p>[-- PAGE.Text3 --]</p>

[-- END_IF --]
</td>
</tr>
<tr>
<td><img src="http://www.xmasdays.com/templates/xdays_home/images/bottom_scroll_03.jpg" width="664" height="69" alt="Christmas Days Arlington Vermont" /></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

[-- END_DEFINE PAGE --]
luciano991
 
Posts: 51
Joined: Mon Feb 19, 2007 7:30 am

Postby Jim » Sat Oct 13, 2007 5:17 pm

I can't see the page you give the link for so don't know what you are trying to display. I presume the problem might relate to this
Code: Select all
[-- IF PAGE.DisplayGraphic --]
[-- IF PAGE.Graphic --]
[-- VAR.PageGraphic PAGE.Graphic --]

[-- END_IF --]
[-- END_IF --]

Here you are saying
if the box to display the page graphic is checked
and there is a graphic assigned to the page
then assign that graphic to the variable VAR.PageGraphic.

No where does it say to display the graphic. To display the graphic you would use the tag [-- PAGE.Graphic --] where you currently have [-- VAR.PageGraphic PAGE.Graphic --].

The only reason you might want to use the [-- VAR.PageGraphic PAGE.Graphic --] statement is if you are trying to keep that graphic so that it can be used somewhere else during the publish (like on a product moreinfo page) If this is the case then you would use [-- VAR.PageGraphic --] where ever you want the image displayed and you don't actually have access to the field [-- PAGE.graphic --]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby luciano991 » Sat Oct 13, 2007 8:13 pm

Jim,

Thanks very much. This is exactly what I am looking for and it solves the problem very nicely. My next question was going to be how to get the picture under the page title, but I just moved the code for the graphic below the tag for the page title and it worked out great. Sorry about the bad URL. Here is the page: http://www.xmasdays.com/store/lynnhaney.html.

Could you place more than one picture on the page? Would you just add the appropriate HTML to the Text 1, Text 2 and Text 3 boxes? I tried this but I think I was having some path problems in my img src tag. Thanks again so much for your help.

all the best,

Mark :D
luciano991
 
Posts: 51
Joined: Mon Feb 19, 2007 7:30 am

Postby Jim » Sat Oct 13, 2007 9:54 pm

Yes you can add as many pictures as you need by including the html to display the picture in one of the text fields. The easiest way to get the proper html for the picture is to go to the Images section of of the back office and select the image and click the Edit Images button. You will then find a section called Image tag which you can copy and paste into your text field.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby luciano991 » Sun Oct 14, 2007 4:24 am

Jim,

That's amazing. I keep finding out so many cool things about Shopsite. Thanks so much for your help.

All the Best,

Mark
luciano991
 
Posts: 51
Joined: Mon Feb 19, 2007 7:30 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 116 guests

cron