Cust Page/Product Template Generates Code BELOW </HTML>

General ShopSite user discussion

Cust Page/Product Template Generates Code BELOW </HTML>

Postby redthruviolet » Thu Dec 28, 2006 2:47 pm

Hello.

I created a Page and a Product Template, and everything is "fine", except code is generated below the closing HTML tag.
See http://cloud9sales.com/shopsite_sc/store/html/TT.html.

_____________________________________________________________

Here is the Product Template:

[-- DEFINE PRODUCT --]

[-- IF PRODUCT.Field1 --]
<span class="TProdHP_Line">[-- PRODUCT.Field1 --]</span>
[-- END_IF --]

[-- IF PRODUCT.Field3--]
<br>
<a CLASS="LinkTop" HREF="[-- PRODUCT.Field3 --]" target="_top">
[-- IF PRODUCT.Graphic --]
[-- PRODUCT.Graphic --]
[-- END_IF --]
</a>
[-- END_IF --]

[-- IF PRODUCT.Field2 --]
<br>
<span class="TProdHP_Subline">[-- PRODUCT.Field2 --]</span>
[-- END_IF --]

[-- END_DEFINE PRODUCT --]

_____________________________________________________________

Here is the Page Template:

###########################
[-- DEFINE LINK_TO_PAGE --]
###########################
# Create the link *to* this page, which is used by other pages
# LinkGraphic, LinkText, and Link TextWrap are not used in this template

<a class="pagelink" href="[-- OUTPUT_DIRECTORY_URL --]/[-- Page.FileName --]">
[-- IF PAGE.LinkName --]
[-- PAGE.LinkName --]
[-- ELSE --]
[-- PAGE.Name --]
[-- END_IF --]
</a>

###############################
[-- END_DEFINE LINK_TO_PAGE --]
###############################

###################
[-- DEFINE PAGE --]
###################

[-- VAR.PageName PAGE.Name --]
[-- VAR.PageFilename PAGE.Filename --]
[-- VAR.PageWidth PAGE.PageWidth --]
[-- VAR.TextColor "#333366" --]
[-- VAR.LinkBorderColor "#333366" --]
[-- VAR.border 0 --]
[-- VAR.align "center" --]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<!-- Title, META tags, External Cascading Style Sheet, and Javascript File -->

<title> [--PAGE.linktext Remove_Html --] Twirly Things: Home Page </title>

<meta http-equiv="PICS-Label" content="Rating META Tag">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="[-- PAGE.MetaDescription --]">
<meta name="keywords" content="[-- PAGE.MetaKeywords --]">

<link href="styles.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript" SRC="javascript/cnsjs.js"> </script>

</head>

<body background="[-- PAGE.BackgroundImage --]">

<center>

<a name="Top"> </a>

<!-- Table 1: Outer border of Matte -->

<table width="100%" align="center" cellpadding="25" border="0" summary="Table 1: Outer border of Matte">
<tr>
<td height="100%" align="center" valign="middle">

<!-- Table 2: Black Background Matte -->

<table width="85%" align="center" cellpadding="0" border="0" summary="Table 2: Black Background Matte">
<tr>
<td height="85%" bgcolor="#000000" align="center" valign="middle">

<!-- Table 3: Navy Matte -->

<table width="100%" cellpadding="8" border="0" align="center" summary="Table 3: Navy Matte">
<tr>
<td bgcolor="[-- VAR.TextColor --]" align="center" valign="middle" height="100%">

<!-- Table 4: Light Gray BG Matte -->

<table width="100%" cellpadding="0" border="0" align="center" summary="Table 4: Light Gray BG Matte">
<tr>
<td bgcolor="#999999" valign="middle" align="center" height="100%">

<!-- Table 5: Banner and Top of Page Area -->

<table width="100%" border="0" cellpadding="25" align="center" summary="Table 5: Banner and Top of Page Area"> <tr>

<td class="Content" height="100%" align="center" valign="top" bgcolor="[-- PAGE.BackgroundColor --]">

[-- IF PAGE.DisplayGraphic --]
[-- PAGE.Graphic --]
[-- END_IF --]

<!-- Table 6, Links and Products: Begin -->

[-- VAR.colNo 0 --]

<table cellpadding="4" cellspacing="4" border="1" align="center" summary="Table 6: Links and Products"> <tr>
<!-- <table cellpadding="4" cellspacing="4" border="[-- VAR.border --]"> -->

<td class="RecTitle" width="25%" align="center" valign="top" background="images/LL_CloudBG_2.jpg">
<B> Browse Sections </B>
<br />
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" summary="Table 7: Links">
[-- LOOP LINKS --]
<tr> <td class="LinkRecSecDet">
[--LINK --]
</td> </tr>
[-- END_LOOP LINKS --]
</table>
</td>

<td class="Content" width="75%" align="center" valign="top">

<table class="TabPage" width="100%" border="0" cellspacing="0" cellpadding="0" summary="Under Banner Table"> <tr valign="middle">
<td class="YouAreHerePath"> &nbsp; You Are Here: Home </td>
<td align="center" valign="middle">
<form action="http://cloud9sales.com/shopsite_sc/shopping_cart/productsearch.cgi?storeid=*14379e660a2d5097054d04d1" method=post>
<input type=text name="search_field" size=40>
<input type=hidden name="storeid" value="*14379e660a2d5097054d04d1">
<input type=submit value="Search">
</form>
</td>
<td align="center">
<A href="http://cloud9sales.com/shopsite_sc/shopping_cart/order.cgi?storeid=*14c42e76ea5d509705460907&function=show">
<IMG src="images/is_ViewCart.jpg" width="75" height="20" border="0" alt="View Cart Image"> </A>
</td>
</tr> </table>

[-- PAGE.Text1 --]

<!-- Play the Flash file of the EyCatcher Laser Humming Bird -->

<br/>
<object border="0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="375" height="273">
<param name="movie" value="http://cloud9sales.com/shopsite_sc/store/html/media/Breeze/LasSC/BlendedHummingbird.swf">
<param name="quality" value="high">
<param name="scale" value="No Border">
<embed src="http://cloud9sales.com/shopsite_sc/store/html/media/Breeze/LasSC/BlendedHummingbird.swf"
align="left" width="375" height="273" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">
</embed>
</object>

<br />
<span class="TProdHP_Line">Breeze: </span>
<a class="TProdHP_Subline" href="http://www.cloud9sales.com/shopsite_sc/store/html/breeze_lassc.html">EyCatcher Lasers</a>

<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" summary="Table 6: Products">

<!-- The LOOP PRODUCTS tag converts to a TR tag -->
<!-- so there's no need to put one in the template -->
[-- LOOP PRODUCTS PAGE.Columns --]

<td valign="bottom" align="[-- VAR.align --]">

<br/> [-- PRODUCT --]

[-- VAR.colNo INC --]
<!-- <br/> VAR.colNo = [-- VAR.colNo --] -->

[-- IF VAR.colNo 1 --]
<br /> &nbsp; <br />
<A CLASS="LinkTop" HREF="#Top"> [ Top of Page ] </A>
[-- END_IF --]

[-- IF VAR.colNo 2 --]
<br /> &nbsp; <br />
<SPAN CLASS="ContentDkGray10"> <B> Product Samples </B> </SPAN>
[-- END_IF --]

[-- IF VAR.colNo 3 --]
<br /> &nbsp; <br />
<A href="http://cloud9sales.com/shopsite_sc/shopping_cart/order.cgi?storeid=*14c42e76ea5d509705460907&function=show">
<IMG HSPACE="0" VSPACE="0" SRC="images/is_ViewCart.jpg" WIDTH="75" HEIGHT="20" BORDER="0" ALT="View Cart Image"> </A>
[-- VAR.colNo 0 --]
[-- END_IF --]

</td>

<!-- The END_LOOP tag converts to a /TR tag -->
[-- END_LOOP PRODUCTS --]

</table>

<br />
[-- PAGE.Text2 --]

<br /> &nbsp; <br />
[-- PAGE.Text3 --]

<!-- Bottom of Page Area -->

<br /> &nbsp; <br />
<!-- JavaScript to display Top-of-Page Left Links Table -->
<script type="text/javascript" language="JavaScript">
<!--
dispBOP( "index.htm", "27 Dec 2006", 1, 0 );
-->
</script>

</td>

</tr> </table>

<!-- Table 6, Links and Products: End -->

</td></tr>
</table>

</td></tr>
</table>

</td></tr>
</table>

</td></tr>
</table>

</td></tr>
</table>

</center>

</body>

</html>

#######################
[-- END_DEFINE PAGE --]
#######################

___________________________________________________________

Note: I have scrutenized the code, both in the templates and in the generated code, and cannot find what I am missing.
Perhaps this is a known bug in ShopSite, but I do not see it in the Forums.

Any help you can give me would be appreciated.

Thank you,

redthruviolet
redthruviolet
 
Posts: 3
Joined: Thu Dec 28, 2006 2:26 pm
Location: CA

Postby loren_d_c » Thu Dec 28, 2006 4:11 pm

I don't believe I've seen that before, but a couple of things I would suggest are to add a few extra blank lines to the end of your template, and put in a request to Verio to upgrade your store to a newer version of ShopSite (you have the initial v7.1 version, the current version is v8.1.3.1).

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby Jim » Thu Dec 28, 2006 10:44 pm

You might want to run the source of the generated page through an html validator to see if that points out any nesting issues with tables or other tags.

I use http://www.htmlhelp.com/tools/validator/
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Adding 4 Blank Lines to End Fixed It!

Postby redthruviolet » Thu Dec 28, 2006 11:41 pm

FYI,

As Loren suggested, adding 4 blank lines to the end of the Custom Template fixed the problem.

Whoopee!....

,redthruviolet
redthruviolet
 
Posts: 3
Joined: Thu Dec 28, 2006 2:26 pm
Location: CA


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 130 guests