Sub Page Quandry

General ShopSite user discussion

Sub Page Quandry

Postby interwoven » Thu Jun 21, 2007 9:57 pm

I’m trying to create “sub pages” for product categories instead of “sub products” using a single page template. Since I hard-coded the navigational links into the custom template, I originally left out the Loop Links tags. Later, I went into the back office to build the new sub pages by assigning pages to a main product category page (Lamps and Lighting). When I checked the site after publishing the changes, no links to the new pages appeared in the main category page. So I tried adding the Loop Links section to this custom store page template. I also added the Define Links to Page tags at the top of my store page template.
Still no links showing up on the page.

I’ve spent a lot of time creating new sub pages and assigning products to them so I am hesitant to abandon this approach and go with sub-products instead of pages. Should I? What am I missing? I’m wondering about the Link Override template that I have in place and what changes if any need to go into that. Do I need an additional template for the pages that point to “sub pages”? Should I bite the bullet and scrap those new pages and go for the sub products instead?

Below is the custom store page template that I have been using successfully until I tried to add sub page functionality to for certain lines of product (sorry its so long, a lot going on in the markup, but if you scroll to the end you can get past the html and javascript):

Code: Select all
[-- DEFINE LINK_TO_PAGE --]
<a href="[-- OUTPUT_DIRECTORY_URL --]/[-- Page.FileName --]">
[-- IF PAGE.LinkName --]
  [-- PAGE.LinkName --]
[-- ELSE --]
  [-- PAGE.Name --]
[-- END_IF --]
</a>
[-- END_DEFINE LINK_TO_PAGE --]
[-- DEFINE PAGE --]

<html>
<head>
   <title>[-- PAGE.Name Remove_HTML --]</title>
   <link href="2col-fixed.css" rel="stylesheet" type="text/css">
   
   <SCRIPT LANGUAGE="JavaScript">
   <!-- Boilerplate1 Preload Script Begins -->
   
   <!--

function newImage(arg) {
   if (document.images) {
      rslt = new Image();
      rslt.src = arg;
      return rslt;
   }
}

function changeImages() {
   if (document.images && (preloadFlag == true)) {
      for (var i=0; i<changeImages.arguments.length; i+=2) {
         document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
      }
   }
}

var preloadFlag = false;
function preloadImages() {
   if (document.images) {
      home_ImageMap_home_over = newImage("media/images/home-ImageMap_home_over.gif");
      home_ImageMap_account_over = newImage("media/images/home-ImageMap_account_over.gif");
      home_ImageMap_about_down = newImage("media/images/home-ImageMap_about_down.gif");
      home_ImageMap_home_down = newImage("media/images/home-ImageMap_home_down.gif");
      youraccount_ImageMap_account_over = newImage("media/images/youraccount-ImageMap_accoun.gif");
      youraccount_ImageMap_account_down = newImage("media/images/youraccount-ImageMap_acc-11.gif");
      youraccount_ImageMap_account_click = newImage("media/images/youraccount-ImageMap_acc-12.gif");
      youraccount_ImageMap_contact_down = newImage("media/images/youraccount-ImageMap_contac.gif");
      youraccount_ImageMap_about_down = newImage("media/images/youraccount-ImageMap_about_.gif");
      youraccount_ImageMap_links_down = newImage("media/images/youraccount-ImageMap_links_.gif");
      shoppingcart_ImageMap_cart_over = newImage("media/images/shoppingcart-ImageMap_cart_.gif");
      shoppingcart_ImageMap_cart_down = newImage("media/images/shoppingcart-ImageMap_ca-18.gif");
      shoppingcart_ImageMap_cart_click = newImage("media/images/shoppingcart-ImageMap_ca-19.gif");
      shoppingcart_ImageMap_links_down = newImage("media/images/shoppingcart-ImageMap_links.gif");
      logo_ImageMap_logo_over = newImage("media/images/logo-ImageMap_logo_over.gif");
      logo_ImageMap_logo_down = newImage("media/images/logo-ImageMap_logo_down.gif");
      aboutus_ImageMap_about_over = newImage("media/images/aboutus-ImageMap_about_over.gif");
      aboutus_ImageMap_about_down = newImage("media/images/aboutus-ImageMap_about_down.gif");
      contact_ImageMap_contact_over = newImage("media/images/contact-ImageMap_contact_ov.gif");
      contact_ImageMap_contact_down = newImage("media/images/contact-ImageMap_contact_do.gif");
      links_ImageMap_cart_down = newImage("media/images/links-ImageMap_cart_down.gif");
      links_ImageMap_links_over = newImage("media/images/links-ImageMap_links_over.gif");
      links_ImageMap_links_down = newImage("media/images/links-ImageMap_links_down.gif");
      boilerplate1_12_ImageMap_cart_down = newImage("media/images/boilerplate1_12-ImageMap_ca.gif");
      boilerplate1_13_ImageMap_contact_down = newImage("media/images/boilerplate1_13-ImageMap_co.gif");
      boilerplate1_13_ImageMap_about_down = newImage("media/images/boilerplate1_13-ImageMap_ab.gif");
      boilerplate1_13_ImageMap_links_down = newImage("media/images/boilerplate1_13-ImageMap_li.gif");
      preloadFlag = true;
   }
}

// -->
</SCRIPT>
   <!-- Boilerplate1 Preload Script Ends -->

   
   
   

</HEAD>

<BODY BGCOLOR=#FFFFFF ONLOAD="preloadImages();">


<div align="center">


<table border="0">
<tr><td colspan=3>

<!-- ImageReady Slices (boilerplate1.psd) -->
<TABLE WIDTH=737 BORDER=0 CELLPADDING=0 CELLSPACING=0>
   <TR>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=57 HEIGHT=1></TD>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=17 HEIGHT=1></TD>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=55 HEIGHT=1></TD>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=9 HEIGHT=1></TD>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=35 HEIGHT=1></TD>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=52 HEIGHT=1></TD>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=135 HEIGHT=1></TD>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=333 HEIGHT=1></TD>
      <TD>
         <IMG SRC="media/images/spacer.gif" WIDTH=44 HEIGHT=1></TD>
   </TR>
   <TR>
      <TD COLSPAN=7>
         <IMG SRC="media/images/boilerplate1_01.gif" WIDTH=360 HEIGHT=36 BORDER=0 USEMAP="#boilerplate1_01_Map"></TD>
      <TD COLSPAN=2>
         <IMG SRC="media/images/boilerplate1_02.gif" WIDTH=377 HEIGHT=36></TD>
   </TR>
   <TR>
      <TD>
      
      <!-- NOTE:  The A HREF pointing to the non-store pages has an identical banner but different path. Non-site pages are not under "store/" they are under "...images" -->
      
         <A HREF="http://www.apartswarehouse.com/index.html"
            ONMOUSEOVER="window.status='A Parts Home'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
            ONMOUSEOUT="window.status='';  return true;">
            <IMG NAME="home" SRC="media/images/home.gif" WIDTH=57 HEIGHT=17 BORDER=0 USEMAP="#home_Map"></A></TD>
         
            
      <!-- "..account.html below is a temporary file and must changed probably to "account.html" when this feature is activated-->
      
            
      <TD COLSPAN=3>
         <A HREF="http://www.apartswarehouse.com/account.html"
            ONMOUSEOVER="window.status='Your Account'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
            ONMOUSEOUT="window.status='';  return true;">
            <IMG NAME="youraccount" SRC="media/images/youraccount.gif" WIDTH=81 HEIGHT=17 BORDER=0 USEMAP="#youraccount_Map"></A></TD>
      <TD COLSPAN=2>
         <A HREF="http://www.apartswarehouse.com/index.html"
            ONMOUSEOVER="window.status='Your Shopping Cart'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
            ONMOUSEOUT="window.status='';  return true;">
            <IMG NAME="shoppingcart" SRC="media/images/shoppingcart.gif" WIDTH=87 HEIGHT=17 BORDER=0 USEMAP="#shoppingcart_Map"></A></TD>
      <TD ROWSPAN=2>
         <IMG SRC="media/images/spacer.gif" WIDTH=135 HEIGHT=29></TD>
      <TD ROWSPAN=2>
      
      
      
      <!-- LOGO MAP BELOW -->
      
         <A HREF="http://www.apartswarehouse.com/index.html"
            ONMOUSEOVER="window.status='A Parts Home'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
            ONMOUSEOUT="window.status='';  return true;">
            <IMG NAME="logo" SRC="media/images/logo.gif" WIDTH=333 HEIGHT=29 BORDER=0 USEMAP="#logo_Map"></A></TD>



      <TD ROWSPAN=2>
         <IMG SRC="media/images/spacer.gif" WIDTH=44 HEIGHT=29></TD>
   </TR>
   <TR>
      <TD COLSPAN=2>
         <A HREF="http://www.apartswarehouse.com/aboutus.html"
            ONMOUSEOVER="window.status='About Us Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
            ONMOUSEOUT="window.status='';  return true;">
            <IMG NAME="aboutus" SRC="media/images/aboutus.gif" WIDTH=74 HEIGHT=12 BORDER=0 USEMAP="#aboutus_Map"></A></TD>
      <TD>
         <A HREF="http://www.apartswarehouse.com/contact.html"
            ONMOUSEOVER="window.status='Contacts Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
            ONMOUSEOUT="window.status='';  return true;">
            <IMG NAME="contact" SRC="media/images/contact.gif" WIDTH=55 HEIGHT=12 BORDER=0 USEMAP="#contact_Map"></A></TD>
      <TD COLSPAN=2>
         <A HREF="http://www.apartswarehouse.com/links.html"
            ONMOUSEOVER="window.status='Links Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
            ONMOUSEOUT="window.status='';  return true;">
            <IMG NAME="links" SRC="media/images/links.gif" WIDTH=44 HEIGHT=12 BORDER=0 USEMAP="#links_Map"></A></TD>
      <TD>
         <IMG NAME="boilerplate1_12" SRC="media/images/boilerplate1_12.gif" WIDTH=52 HEIGHT=12></TD>
   </TR>
   <TR>
      <TD COLSPAN=7>
         <IMG NAME="boilerplate1_13" SRC="media/images/boilerplate1_13.gif" WIDTH=360 HEIGHT=41></TD>
      <TD COLSPAN=2>
         <IMG SRC="media/images/boilerplate1_14.gif" WIDTH=377 HEIGHT=41></TD>
   </TR>
</TABLE>


<MAP NAME="boilerplate1_01_Map">
<AREA SHAPE="rect" ALT="Home Page" COORDS="316,6,318,7" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self">
<AREA SHAPE="rect" ALT="Home Page" COORDS="304,9,309,10" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self">
</MAP>
<MAP NAME="home_Map">
<AREA SHAPE="rect" ALT="Home" COORDS="17,2,50,15" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self"
   ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_home_over.gif'); return true;"
   ONMOUSEOUT="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'logo', 'media/images/logo.gif'); return true;"
   ONMOUSEDOWN="changeImages('home', 'media/images/home-ImageMap_home_down.gif', 'logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;"
   ONMOUSEUP="changeImages('home', 'media/images/home-ImageMap_home_over.gif', 'logo', 'media/images/logo.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,57,17" HREF="http://www.apartswarehouse.com/index.html">
</MAP>
<MAP NAME="youraccount_Map">
<AREA SHAPE="rect" ALT="Your Account" COORDS="6,5,75,12" HREF="http://www.apartswarehouse.com/account.html" TARGET="_self"
   ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount-ImageMap_accoun.gif'); return true;"
   ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif'); return true;"
   ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_acc-11.gif'); return true;"
   ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount-ImageMap_accoun.gif'); return true;"
   ONCLICK="changeImages('youraccount', 'media/images/youraccount-ImageMap_acc-12.gif');">
<AREA SHAPE="rect" ALT="" COORDS="0,0,81,17" HREF="http://www.apartswarehouse.com/account.html">
</MAP>
<MAP NAME="shoppingcart_Map">
<AREA SHAPE="rect" ALT="StoreFront" COORDS="7,5,81,15" HREF="http://www.apartswarehouse.com/store/index.html" TARGET="_blank"
   ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'shoppingcart', 'media/images/shoppingcart-ImageMap_cart_.gif'); return true;"
   ONMOUSEOUT="changeImages('shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links.gif', 'boilerplate1_12', 'media/images/boilerplate1_12.gif'); return true;"
   ONMOUSEDOWN="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_ca-18.gif', 'links', 'media/images/links-ImageMap_cart_down.gif', 'boilerplate1_12', 'media/images/boilerplate1_12-ImageMap_ca.gif'); return true;"
   ONMOUSEUP="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_cart_.gif', 'links', 'media/images/links.gif', 'boilerplate1_12', 'media/images/boilerplate1_12.gif'); return true;"
   ONCLICK="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_ca-19.gif');">
<AREA SHAPE="rect" ALT="" COORDS="0,0,87,17" HREF="index.html">
</MAP>



<MAP NAME="logo_Map">
<AREA SHAPE="rect" ALT="A Parts Home" COORDS="0,0,333,29" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self"
   ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;"
   ONMOUSEOUT="changeImages('logo', 'media/images/logo.gif'); return true;"
   ONMOUSEDOWN="changeImages('logo', 'media/images/logo-ImageMap_logo_down.gif'); return true;"
   ONMOUSEUP="changeImages('logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,333,29" HREF="#">
<AREA SHAPE="rect" ALT="" COORDS="0,0,333,29" HREF="http://www.apartswarehouse.com/index.html">
</MAP>



<MAP NAME="aboutus_Map">
<AREA SHAPE="rect" ALT="About A Parts" COORDS="19,2,66,9" HREF="http://www.apartswarehouse.com/aboutus.html" TARGET="_self"
   ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_over.gif'); return true;"
   ONMOUSEOUT="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount.gif', 'aboutus', 'media/images/aboutus.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
   ONMOUSEDOWN="changeImages('home', 'media/images/home-ImageMap_about_down.gif', 'youraccount', 'media/images/youraccount-ImageMap_about_.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_down.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_ab.gif'); return true;"
   ONMOUSEUP="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_over.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,74,12" HREF="http://www.apartswarehouse.com/aboutus.html">
</MAP>
<MAP NAME="contact_Map">
<AREA SHAPE="rect" ALT="Contact A Parts" COORDS="0,0,55,12" HREF="http://www.apartswarehouse.com/contact.html" TARGET="_self"
   ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'contact', 'media/images/contact-ImageMap_contact_ov.gif'); return true;"
   ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif', 'contact', 'media/images/contact.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
   ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_contac.gif', 'contact', 'media/images/contact-ImageMap_contact_do.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_co.gif'); return true;"
   ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount.gif', 'contact', 'media/images/contact-ImageMap_contact_ov.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,55,12" HREF="http://www.apartswarehouse.com/contact.html">
</MAP>
<MAP NAME="links_Map">
<AREA SHAPE="rect" ALT="Links" COORDS="10,2,36,9" HREF="http://www.apartswarehouse.com/links.html" TARGET="_blank"
   ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'links', 'media/images/links-ImageMap_links_over.gif'); return true;"
   ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
   ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_links_.gif', 'shoppingcart', 'media/images/shoppingcart-ImageMap_links.gif', 'links', 'media/images/links-ImageMap_links_down.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_li.gif'); return true;"
   ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links-ImageMap_links_over.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,44,12" HREF="http://www.apartswarehouse.com/links.html">
</MAP>
<!-- End ImageReady Slices -->
 </td></tr>


<tr><td colspan=3> <!-- UNDER BOILERPLATE -->


 

   
   
   
</td></tr>

<!-- New Row -->
   <tr><td colspan=2 align="left" height="15px">[-- SEARCH_FORM --]</td><td colspan="1">[-- RegistrationSignIn --]</td></tr>
 
 
<tr><td align="center" valign="top" width="198" bgcolor="#ffffcc">
<!-- LEFT COLUMN > -->



<!-- Minicart Include file Tags here screwed up the page so I pasted the whole script here-->

<script language="javascript">
/**** Mini Cart Subtotal Display ****/

/**** REPLACE THE VALUES IN THESE LINES ****/
var serialnum="0000007011";
var cartURL="http://win2k/70/sc/order.cgi?storeid=*1a484557c5eb4b795d9463eed85a11&function=show";
var textColor="black";
var backgroundColor="transparent";
var showCart="yes";       // only "yes" or "no"
var cartColor="black";    // only "black" or "white"
var textAlign="left";     // only "left" "right" or "center"

/**** DON'T CHANGE ANYTHING BELOW HERE ****/

var linkColor=textColor;
var cookies=document.cookie;  //read in all cookies
var start = cookies.indexOf("ss_cart_" + serialnum + "=");
var cartvalues = "";
var linecount = 0;
var start1;
var end1;
var tmp;

// Start Output
document.write("<div style=\"color:" + textColor + ";");
document.write("background-color:" + backgroundColor + ";");
document.write("text-align:" + textAlign + ";");
document.write("font-family: Verdana, Arial, Helvetica, sans-serif;");
document.write("font-size: 8pt;");
document.write("\">\n");
if (showCart == "yes")
{
  document.write("<a href=\"");
  document.write(cartURL + "\"");
  document.write(">");
  document.write("<img src=\"./media/themesmedia/cart-" + cartColor + ".gif\" border=\"0\" align=\"top\">");
  document.write("</a> ");
}

if (start == -1)  //No cart cookie
{
  document.write("<a href=\"" + cartURL + "\" style=\"color:" + linkColor + "\">");
  document.write("0 Items");
  document.write("</a> ");
  document.write("</div>\n");
}
else   //cart cookie is present
{
  start = cookies.indexOf("=", start) +1; 
  var end = cookies.indexOf(";", start); 

  if (end == -1)
  {
    end = cookies.length;
  }

  cartvalues = unescape(cookies.substring(start,end)); //read in just the cookie data

  start = 0;
  while ((start = cartvalues.indexOf("|", start)) != -1)
  {
    start++;
    end = cartvalues.indexOf("|", start);
    if (end != -1)
    {
      linecount++;

      if (linecount == 2) // Total Quantity of Items
      {
        tmp = cartvalues.substring(start,end);
        colon = tmp.indexOf(":", 0);
        document.write("<a href=\"" + cartURL + "\" style=\"color:" + linkColor + "\">");
        document.write(tmp.substring(colon+1,end - start));
        if ((tmp.substring(colon+1,end - start)) == 1 )
        {
          document.write(" Item");
        }
        else
        {
          document.write(" Items");
        }
        document.write(": ");
      }

      if (linecount == 3)  // Product Subtotal
      {
        tmp = cartvalues.substring(start,end);
        colon = tmp.indexOf(":", 0);
        document.write(tmp.substring(colon+1,end - start));
        document.write("</a>");
      }

      start = end;
    }
    else
      break;
    }
  } // end while loop

  //close minicart HTML
  document.write("</div>\n");
</script>




<!-- <h3>Store Departments</h3> -->


   <!-- No Links Loop Needed below since links are just hypertext --> 
   
   
   <br><hr size="1" width="80%">    
<a name="Accessories " id="accessories " href="accessories.html" target="_self" title="Accessories Storefront Page">
Accessories
</a><hr size="1" width="70%">


<a name="Brooms & Scrapers " id="brooms " href="brooms.html" target="_self" title="Brooms & Scrapers Storefront Page">
Brooms &amp; Scrapers
</a><br><hr size="1" width="90%">


<a name="Decals" id="decals " href="decals.html" target="_self" title="Decals Storefront Page">
Decals &amp; Signs
</a><hr size="1" width="90%">


<a name="electrical " id="electrical " href="electric.html" target="_self" title="Electrical Storefront Page">
Electrical
</a><hr size="1" width="90%">


<a name="Exhaust " id="exhaust " href="exhaust.html" target="_self" title="Exhaust Storefront Page">
Exhaust
</a><hr size="1" width="90%">


<a name="First Aid " id="firstaid " href="firstaid.html" target="_self" title="First Aid Storefront Page">
First Aid
</a><hr size="1" width="90%">


<a name="Flooring " id="Flooring " href="flooring.html" target="_self" title="Flooring Storefront Page">
Flooring
</a><hr size="1" width="90%">


<a name="Gloves " id="gloves " href="gloves.html" target="_self" title="Gloves Storefront Page">
Gloves
</a><hr size="1" width="90%">


<a name="Heater Parts " id="heater parts " href="heaters.html" target="_self" title="Heater Parts Storefront Page">
Heater Parts
</a><hr size="1" width="90%">


<a name="Lamps " id="lamps " href="lamps.html" target="_self" title="Lamps Storefront Page">
Lamps
</a><hr size="1" width="90%">


<a name="sealants" id="sealants " href="sealants.html" target="_self" title="Lubricants & Sealants Store Page">
Solvents, Lubricants, Paint &amp; Sealants
</a><hr size="1" width="90%">


<a name="mirrors" id="mirrors" href="mirrors.html" target="_self" title="Mirrors Store Page">
Mirrors
</a><hr size="1" width="90%">


<a name="Motors and Pumps" id="motors " href="motors_pumps.html" target="_self" title="Motors & Pumps Storefront Page">
 Motors &amp; Pumps
</a><br><hr size="1" width="90%">


<a name="Radios and Cameras" id="radios " href="radios_cams.html" target="_self" title="Radios & Cameras Storefront Page">
Radios &amp; Cameras
</a><br><hr size="1" width="90%">


<a name="roofvents" id="roofvents" href="roofvents.html" target="_self" title="Roof Vents Store Page">
Roof Vents / Emergency Exits
</a><hr size="1" width="90%">


<a name="seating" id="seating" href="seating.html" target="_self" title="Seating Store Page">
Seating
</a><hr size="1" width="90%">


<a name="stoparms" id="stoparms" href="stop_arms.html" target="_self" title="Stop Arms Store Page">
Stop &amp; Crossing Arms
</a><hr size="1" width="90%">


<a name="specialneeds" id="specialneeds" href="specialneeds.html" target="_self" title="Special Needs Store Page">
Special Needs
</a><hr size="1" width="90%">


<a name="tools" id="tools" href="tools.html" target="_self" title="Tools Store Page">
Tools
</a><br><hr size="1" width="90%">
   
   <a name="wipers" id="wipers" href="wipers.html" target="_self" title="Wipers Store Page">
Wipers
</a><br>
   <br><br><br>      



   
</td>


   <!-- SPACER CELL -->
   <td width="15"></td>

   
   <td width="521" align="left" valign="top"><!-- CONTENT CELL -->
         <div id="content">
      
      
      [-- PAGE.Text1 --]

      <p>
[-- LOOP LINKS --]
[-- LINK storepage_template3.html --]<br>
[-- END_LOOP LINKS --]
</p>
      
      <table border="1" bordercolordark="#ffffcc" bordercolorlight="#ffffff" cellpadding="1" cellspacing="2">
        [-- LOOP PRODUCTS 2--]
        <tr>
          <td>
            [-- PRODUCT --]
          </td>
        </tr>
        [-- END_LOOP PRODUCTS --]
      </table>
       [-- PAGE.Text2 --]
      

   </div>            
            
   <!-- CONTENT CELL ENDS--></td></tr>   
   
   <!-- Footer Nav Begins-->
               
</table>
   <table><tr><td width="700"><hr  size="1"></td></tr></table>
   <!-- Footer Nav Begins-->
   
   <table border=0>
   <tr><td width="519" align="center">
               <div id="tabletext1">
               
       <a name="A Parts Home" id="A Parts Home" href="http://www.apartswarehouse.com/links.html" title="Home Page">Home</a>
      | <a name="Account" id="Account" href="http://www.apartswarehouse.com/account.html" title="User Account">Your Account</a>
      | <a name="StoreFront" id="StoreFront" href="http://www.apartswarehouse.com/store/index.html" target="_blank" title="StoreFront">StoreFront</a>
      | <a name="About Us" id="About Us" href="http://www.apartswarehouse.com/aboutus.html" title="About Us">About Us</a>
      | <a name="Contact Us " id="Contact Us " href="http://www.apartswarehouse.com/contact.html" title="Contact">Contact Us</a>
      | <a name="Links" id="Links" href="http://www.apartswarehouse.com/links.html" title="Links">Links</a>
      </div></td></tr>
      
   <tr><td width="519" align="center"><div id="tabletext2">Copyright 2006, A Parts Warehouse.</div></td></tr>
   </table>

[-- PAGE.Text3 --]

</body></div>
</html>
[-- END_DEFINE PAGE --]



Thanks In Advance!
interwoven
 
Posts: 7
Joined: Fri Jun 08, 2007 9:11 pm

Postby JeremeD » Thu Jun 21, 2007 10:43 pm

Does your link override template have a [-- DEFINE LINK_TO_PAGE --] section?
SD360.com
Certified ShopSite Designer
ShopSite Templates Available Now
JeremeD
 
Posts: 60
Joined: Sat Feb 10, 2007 4:20 pm
Location: Athens, GA

Postby Jim » Fri Jun 22, 2007 8:21 am

Check to see what template is assigned to the pages that you think should be using this template. I checked several pages and they are using the storepage_template3.html (you can see the template name in the 3 line of the html source for a ShopSite generated page)

Note that the template you posted has <p> tags around the loop links section
<!-- SPACER CELL -->
<td width="15"></td>


<td width="521" align="left" valign="top"><!-- CONTENT CELL -->
<div id="content">


[-- PAGE.Text1 --]

<p>
[-- LOOP LINKS --]
[-- LINK storepage_template3.html --]<br>
[-- END_LOOP LINKS --]
</p>
<table border="1" bordercolordark="#ffffcc" bordercolorlight="#ffffff" cellpadding="1" cellspacing="2">

but when you view the source of pages in the store for example
http://www.apartswarehouse.com/store/brooms.html
<!-- SPACER CELL -->
<td width="15"></td>


<td width="521" align="left" valign="top"><!-- CONTENT CELL -->

<div id="content">


<H2>Brooms & Scrapers</H2>
<br>
<table border="1" bordercolordark="#ffffcc" bordercolorlight="#ffffff" cellpadding="1" cellspacing="2">


There is a <br> where the loop links section should be listed instead of the <p> </p> tags. Even if there were no [-- DEFINE LINK_TO_PAGE --] section in your template you should still see the <p> tags in your output but they aren't there. So it looks like you may not be using the template that you think you are.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby interwoven » Fri Jun 22, 2007 10:29 am

Good observation. The 13 sub pages generated by Shopsite, which it named page32.html through page45.html, all seem to be using the right template: (storepage_template3.html). I verified that by viewing the source and looking at the 3rd line as you suggested. The page I created sub pages for in the back office (lamps.html) is also showing the the storepage_template3.html template. This, of course, is the page that should list links to the sub pages. What could be keeping the assigned pages from showing up as links in the lamps.html page? I suppose I could hard-code to those automatically numbered pages, but I figured Shopsite was going to do that its own way. Maybe I cant have it both ways or need a second page template (which would be nice to avoid if possible).
I did notice something interesting viewing the shopsite-generated source of the lamps.html page....Youll see it near the bottom of the code below. its the <!-- Empty field [Text1] --> followed by a column of 13 <br> tags enclosed in a pair of <p> tags. Is that as it should be?

Thanks again for your time Jim


<html>
<head>
<meta name="generator" content="ShopSite Pro 8.1.2 (data - storepage_template3.html)">

<title>Lamps & Lighting</title>
<link href="2col-fixed.css" rel="stylesheet" type="text/css">

<SCRIPT LANGUAGE="JavaScript">
<!-- Boilerplate1 Preload Script Begins -->

<!--

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
home_ImageMap_home_over = newImage("media/images/home-ImageMap_home_over.gif");
home_ImageMap_account_over = newImage("media/images/home-ImageMap_account_over.gif");
home_ImageMap_about_down = newImage("media/images/home-ImageMap_about_down.gif");
home_ImageMap_home_down = newImage("media/images/home-ImageMap_home_down.gif");
youraccount_ImageMap_account_over = newImage("media/images/youraccount-ImageMap_accoun.gif");
youraccount_ImageMap_account_down = newImage("media/images/youraccount-ImageMap_acc-11.gif");
youraccount_ImageMap_account_click = newImage("media/images/youraccount-ImageMap_acc-12.gif");
youraccount_ImageMap_contact_down = newImage("media/images/youraccount-ImageMap_contac.gif");
youraccount_ImageMap_about_down = newImage("media/images/youraccount-ImageMap_about_.gif");
youraccount_ImageMap_links_down = newImage("media/images/youraccount-ImageMap_links_.gif");
shoppingcart_ImageMap_cart_over = newImage("media/images/shoppingcart-ImageMap_cart_.gif");
shoppingcart_ImageMap_cart_down = newImage("media/images/shoppingcart-ImageMap_ca-18.gif");
shoppingcart_ImageMap_cart_click = newImage("media/images/shoppingcart-ImageMap_ca-19.gif");
shoppingcart_ImageMap_links_down = newImage("media/images/shoppingcart-ImageMap_links.gif");
logo_ImageMap_logo_over = newImage("media/images/logo-ImageMap_logo_over.gif");
logo_ImageMap_logo_down = newImage("media/images/logo-ImageMap_logo_down.gif");
aboutus_ImageMap_about_over = newImage("media/images/aboutus-ImageMap_about_over.gif");
aboutus_ImageMap_about_down = newImage("media/images/aboutus-ImageMap_about_down.gif");
contact_ImageMap_contact_over = newImage("media/images/contact-ImageMap_contact_ov.gif");
contact_ImageMap_contact_down = newImage("media/images/contact-ImageMap_contact_do.gif");
links_ImageMap_cart_down = newImage("media/images/links-ImageMap_cart_down.gif");
links_ImageMap_links_over = newImage("media/images/links-ImageMap_links_over.gif");
links_ImageMap_links_down = newImage("media/images/links-ImageMap_links_down.gif");
boilerplate1_12_ImageMap_cart_down = newImage("media/images/boilerplate1_12-ImageMap_ca.gif");
boilerplate1_13_ImageMap_contact_down = newImage("media/images/boilerplate1_13-ImageMap_co.gif");
boilerplate1_13_ImageMap_about_down = newImage("media/images/boilerplate1_13-ImageMap_ab.gif");
boilerplate1_13_ImageMap_links_down = newImage("media/images/boilerplate1_13-ImageMap_li.gif");
preloadFlag = true;
}
}

// -->
</SCRIPT>
<!-- Boilerplate1 Preload Script Ends -->





</HEAD>

<BODY BGCOLOR=#FFFFFF ONLOAD="preloadImages();">


<div align="center">


<table border="0">
<tr><td colspan=3>

<!-- ImageReady Slices (boilerplate1.psd) -->
<TABLE WIDTH=737 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=57 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=17 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=55 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=9 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=35 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=52 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=135 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=333 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=44 HEIGHT=1></TD>
</TR>
<TR>
<TD COLSPAN=7>
<IMG SRC="media/images/boilerplate1_01.gif" WIDTH=360 HEIGHT=36 BORDER=0 USEMAP="#boilerplate1_01_Map"></TD>
<TD COLSPAN=2>
<IMG SRC="media/images/boilerplate1_02.gif" WIDTH=377 HEIGHT=36></TD>
</TR>
<TR>
<TD>

<!-- NOTE: The A HREF pointing to the non-store pages has an identical banner but different path. Non-site pages are not under "store/" they are under "...images" -->

<A HREF="http://www.apartswarehouse.com/index.html"
ONMOUSEOVER="window.status='A Parts Home'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="home" SRC="media/images/home.gif" WIDTH=57 HEIGHT=17 BORDER=0 USEMAP="#home_Map"></A></TD>


<!-- "..account.html below is a temporary file and must changed probably to "account.html" when this feature is activated-->


<TD COLSPAN=3>
<A HREF="http://www.apartswarehouse.com/account.html"
ONMOUSEOVER="window.status='Your Account'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="youraccount" SRC="media/images/youraccount.gif" WIDTH=81 HEIGHT=17 BORDER=0 USEMAP="#youraccount_Map"></A></TD>
<TD COLSPAN=2>
<A HREF="http://www.apartswarehouse.com/index.html"
ONMOUSEOVER="window.status='Your Shopping Cart'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="shoppingcart" SRC="media/images/shoppingcart.gif" WIDTH=87 HEIGHT=17 BORDER=0 USEMAP="#shoppingcart_Map"></A></TD>
<TD ROWSPAN=2>
<IMG SRC="media/images/spacer.gif" WIDTH=135 HEIGHT=29></TD>
<TD ROWSPAN=2>



<!-- LOGO MAP BELOW -->

<A HREF="http://www.apartswarehouse.com/index.html"
ONMOUSEOVER="window.status='A Parts Home'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="logo" SRC="media/images/logo.gif" WIDTH=333 HEIGHT=29 BORDER=0 USEMAP="#logo_Map"></A></TD>



<TD ROWSPAN=2>
<IMG SRC="media/images/spacer.gif" WIDTH=44 HEIGHT=29></TD>
</TR>
<TR>
<TD COLSPAN=2>
<A HREF="http://www.apartswarehouse.com/aboutus.html"
ONMOUSEOVER="window.status='About Us Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="aboutus" SRC="media/images/aboutus.gif" WIDTH=74 HEIGHT=12 BORDER=0 USEMAP="#aboutus_Map"></A></TD>
<TD>
<A HREF="http://www.apartswarehouse.com/contact.html"
ONMOUSEOVER="window.status='Contacts Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="contact" SRC="media/images/contact.gif" WIDTH=55 HEIGHT=12 BORDER=0 USEMAP="#contact_Map"></A></TD>
<TD COLSPAN=2>
<A HREF="http://www.apartswarehouse.com/links.html"
ONMOUSEOVER="window.status='Links Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="links" SRC="media/images/links.gif" WIDTH=44 HEIGHT=12 BORDER=0 USEMAP="#links_Map"></A></TD>
<TD>
<IMG NAME="boilerplate1_12" SRC="media/images/boilerplate1_12.gif" WIDTH=52 HEIGHT=12></TD>
</TR>
<TR>
<TD COLSPAN=7>
<IMG NAME="boilerplate1_13" SRC="media/images/boilerplate1_13.gif" WIDTH=360 HEIGHT=41></TD>
<TD COLSPAN=2>
<IMG SRC="media/images/boilerplate1_14.gif" WIDTH=377 HEIGHT=41></TD>
</TR>
</TABLE>


<MAP NAME="boilerplate1_01_Map">
<AREA SHAPE="rect" ALT="Home Page" COORDS="316,6,318,7" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self">
<AREA SHAPE="rect" ALT="Home Page" COORDS="304,9,309,10" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self">
</MAP>
<MAP NAME="home_Map">
<AREA SHAPE="rect" ALT="Home" COORDS="17,2,50,15" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_home_over.gif'); return true;"
ONMOUSEOUT="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'logo', 'media/images/logo.gif'); return true;"
ONMOUSEDOWN="changeImages('home', 'media/images/home-ImageMap_home_down.gif', 'logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;"
ONMOUSEUP="changeImages('home', 'media/images/home-ImageMap_home_over.gif', 'logo', 'media/images/logo.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,57,17" HREF="http://www.apartswarehouse.com/index.html">
</MAP>
<MAP NAME="youraccount_Map">
<AREA SHAPE="rect" ALT="Your Account" COORDS="6,5,75,12" HREF="http://www.apartswarehouse.com/account.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount-ImageMap_accoun.gif'); return true;"
ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif'); return true;"
ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_acc-11.gif'); return true;"
ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount-ImageMap_accoun.gif'); return true;"
ONCLICK="changeImages('youraccount', 'media/images/youraccount-ImageMap_acc-12.gif');">
<AREA SHAPE="rect" ALT="" COORDS="0,0,81,17" HREF="http://www.apartswarehouse.com/account.html">
</MAP>
<MAP NAME="shoppingcart_Map">
<AREA SHAPE="rect" ALT="StoreFront" COORDS="7,5,81,15" HREF="http://www.apartswarehouse.com/store/index.html" TARGET="_blank"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'shoppingcart', 'media/images/shoppingcart-ImageMap_cart_.gif'); return true;"
ONMOUSEOUT="changeImages('shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links.gif', 'boilerplate1_12', 'media/images/boilerplate1_12.gif'); return true;"
ONMOUSEDOWN="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_ca-18.gif', 'links', 'media/images/links-ImageMap_cart_down.gif', 'boilerplate1_12', 'media/images/boilerplate1_12-ImageMap_ca.gif'); return true;"
ONMOUSEUP="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_cart_.gif', 'links', 'media/images/links.gif', 'boilerplate1_12', 'media/images/boilerplate1_12.gif'); return true;"
ONCLICK="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_ca-19.gif');">
<AREA SHAPE="rect" ALT="" COORDS="0,0,87,17" HREF="index.html">
</MAP>



<MAP NAME="logo_Map">
<AREA SHAPE="rect" ALT="A Parts Home" COORDS="0,0,333,29" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;"
ONMOUSEOUT="changeImages('logo', 'media/images/logo.gif'); return true;"
ONMOUSEDOWN="changeImages('logo', 'media/images/logo-ImageMap_logo_down.gif'); return true;"
ONMOUSEUP="changeImages('logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,333,29" HREF="#">
<AREA SHAPE="rect" ALT="" COORDS="0,0,333,29" HREF="http://www.apartswarehouse.com/index.html">
</MAP>



<MAP NAME="aboutus_Map">
<AREA SHAPE="rect" ALT="About A Parts" COORDS="19,2,66,9" HREF="http://www.apartswarehouse.com/aboutus.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_over.gif'); return true;"
ONMOUSEOUT="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount.gif', 'aboutus', 'media/images/aboutus.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
ONMOUSEDOWN="changeImages('home', 'media/images/home-ImageMap_about_down.gif', 'youraccount', 'media/images/youraccount-ImageMap_about_.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_down.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_ab.gif'); return true;"
ONMOUSEUP="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_over.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,74,12" HREF="http://www.apartswarehouse.com/aboutus.html">
</MAP>
<MAP NAME="contact_Map">
<AREA SHAPE="rect" ALT="Contact A Parts" COORDS="0,0,55,12" HREF="http://www.apartswarehouse.com/contact.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'contact', 'media/images/contact-ImageMap_contact_ov.gif'); return true;"
ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif', 'contact', 'media/images/contact.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_contac.gif', 'contact', 'media/images/contact-ImageMap_contact_do.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_co.gif'); return true;"
ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount.gif', 'contact', 'media/images/contact-ImageMap_contact_ov.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,55,12" HREF="http://www.apartswarehouse.com/contact.html">
</MAP>
<MAP NAME="links_Map">
<AREA SHAPE="rect" ALT="Links" COORDS="10,2,36,9" HREF="http://www.apartswarehouse.com/links.html" TARGET="_blank"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'links', 'media/images/links-ImageMap_links_over.gif'); return true;"
ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_links_.gif', 'shoppingcart', 'media/images/shoppingcart-ImageMap_links.gif', 'links', 'media/images/links-ImageMap_links_down.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_li.gif'); return true;"
ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links-ImageMap_links_over.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,44,12" HREF="http://www.apartswarehouse.com/links.html">
</MAP>
<!-- End ImageReady Slices -->
</td></tr>


<tr><td colspan=3> <!-- UNDER BOILERPLATE -->







</td></tr>

<!-- New Row -->
<tr><td colspan=2 align="left" height="15px"></td><td colspan="1"><script type="text/javascript" language="JavaScript">
function DisplayLogName(name) {
var cookies=document.cookie;
var start = cookies.indexOf(name + "=");
var name = "";
var start1;
var end1;
var tmp;
var signed_in = -1;

if (start != -1) {
start = cookies.indexOf("=", start) +1;
var end = cookies.indexOf("|", start);
if (end != -1) {
signed_in = cookies.indexOf("|yes", start);
name = unescape(cookies.substring(start,end-1));
document.write("<b>" + name + "</b>");
if (signed_in != -1) {
document.write("<br>");
document.write("•<a href=\"http://shopsite.bizland.com/ss8.1/sc/order.cgi?func=3&storeid=*22b671fa79227f151ab9d104b626853d4ecb26&html_reg=html\">View/Edit Account</a>");
document.write("<br>");
document.write("• <a href=\"http://shopsite.bizland.com/ss8.1/sc/order.cgi?func=4&storeid=*22b671fa79227f151ab9d104b626853d4ecb26&html_reg=html\">Sign Out</a>");
document.write("<br>");
}
else
{
document.write(" - You are no longer signed in<br>");
}
}
}
if (signed_in == -1) {
document.write("• New Customer? <a href=\"http://shopsite.bizland.com/ss8.1/sc/order.cgi?func=1&storeid=*22b671fa79227f151ab9d104b626853d4ecb26&html_reg=html\">Click here to Register</a>");
document.write("<br>");
document.write("• Returning Customer? <a href=\"http://shopsite.bizland.com/ss8.1/sc/order.cgi?func=2&storeid=*22b671fa79227f151ab9d104b626853d4ecb26&html_reg=html\">Click here to Sign In</a>");
document.write("<br>");
}
}
DisplayLogName("ss_reg_0001240252");
</SCRIPT>
</td></tr>


<tr><td align="center" valign="top" width="198" bgcolor="#ffffcc">
<!-- LEFT COLUMN > -->



<!-- Minicart Include file Tags here screwed up the page so I pasted the whole script here-->

<script language="javascript">
/**** Mini Cart Subtotal Display ****/

/**** REPLACE THE VALUES IN THESE LINES ****/
var serialnum="0000007011";
var cartURL="http://win2k/70/sc/order.cgi?storeid=*1a484557c5eb4b795d9463eed85a11&function=show";
var textColor="black";
var backgroundColor="transparent";
var showCart="yes"; // only "yes" or "no"
var cartColor="black"; // only "black" or "white"
var textAlign="left"; // only "left" "right" or "center"

/**** DON'T CHANGE ANYTHING BELOW HERE ****/

var linkColor=textColor;
var cookies=document.cookie; //read in all cookies
var start = cookies.indexOf("ss_cart_" + serialnum + "=");
var cartvalues = "";
var linecount = 0;
var start1;
var end1;
var tmp;

// Start Output
document.write("<div style=\"color:" + textColor + ";");
document.write("background-color:" + backgroundColor + ";");
document.write("text-align:" + textAlign + ";");
document.write("font-family: Verdana, Arial, Helvetica, sans-serif;");
document.write("font-size: 8pt;");
document.write("\">\n");
if (showCart == "yes")
{
document.write("<a href=\"");
document.write(cartURL + "\"");
document.write(">");
document.write("<img src=\"./media/themesmedia/cart-" + cartColor + ".gif\" border=\"0\" align=\"top\">");
document.write("</a> ");
}

if (start == -1) //No cart cookie
{
document.write("<a href=\"" + cartURL + "\" style=\"color:" + linkColor + "\">");
document.write("0 Items");
document.write("</a> ");
document.write("</div>\n");
}
else //cart cookie is present
{
start = cookies.indexOf("=", start) +1;
var end = cookies.indexOf(";", start);

if (end == -1)
{
end = cookies.length;
}

cartvalues = unescape(cookies.substring(start,end)); //read in just the cookie data

start = 0;
while ((start = cartvalues.indexOf("|", start)) != -1)
{
start++;
end = cartvalues.indexOf("|", start);
if (end != -1)
{
linecount++;

if (linecount == 2) // Total Quantity of Items
{
tmp = cartvalues.substring(start,end);
colon = tmp.indexOf(":", 0);
document.write("<a href=\"" + cartURL + "\" style=\"color:" + linkColor + "\">");
document.write(tmp.substring(colon+1,end - start));
if ((tmp.substring(colon+1,end - start)) == 1 )
{
document.write(" Item");
}
else
{
document.write(" Items");
}
document.write(": ");
}

if (linecount == 3) // Product Subtotal
{
tmp = cartvalues.substring(start,end);
colon = tmp.indexOf(":", 0);
document.write(tmp.substring(colon+1,end - start));
document.write("</a>");
}

start = end;
}
else
break;
}
} // end while loop

//close minicart HTML
document.write("</div>\n");
</script>




<!-- <h3>Store Departments</h3> -->


<!-- No Links Loop Needed below since links are just hypertext -->


<br><hr size="1" width="80%">
<a name="Accessories " id="accessories " href="accessories.html" target="_self" title="Accessories Storefront Page">
Accessories
</a><hr size="1" width="70%">


<a name="Brooms & Scrapers " id="brooms " href="brooms.html" target="_self" title="Brooms & Scrapers Storefront Page">
Brooms &amp; Scrapers
</a><br><hr size="1" width="90%">


<a name="Decals" id="decals " href="decals.html" target="_self" title="Decals Storefront Page">
Decals &amp; Signs
</a><hr size="1" width="90%">


<a name="electrical " id="electrical " href="electric.html" target="_self" title="Electrical Storefront Page">
Electrical
</a><hr size="1" width="90%">


<a name="Exhaust " id="exhaust " href="exhaust.html" target="_self" title="Exhaust Storefront Page">
Exhaust
</a><hr size="1" width="90%">


<a name="First Aid " id="firstaid " href="firstaid.html" target="_self" title="First Aid Storefront Page">
First Aid
</a><hr size="1" width="90%">


<a name="Flooring " id="Flooring " href="flooring.html" target="_self" title="Flooring Storefront Page">
Flooring
</a><hr size="1" width="90%">


<a name="Gloves " id="gloves " href="gloves.html" target="_self" title="Gloves Storefront Page">
Gloves
</a><hr size="1" width="90%">


<a name="Heater Parts " id="heater parts " href="heaters.html" target="_self" title="Heater Parts Storefront Page">
Heater Parts
</a><hr size="1" width="90%">


<a name="Lamps " id="lamps " href="lamps.html" target="_self" title="Lamps Storefront Page">
Lamps
</a><hr size="1" width="90%">


<a name="sealants" id="sealants " href="sealants.html" target="_self" title="Lubricants & Sealants Store Page">
Solvents, Lubricants, Paint &amp; Sealants
</a><hr size="1" width="90%">


<a name="mirrors" id="mirrors" href="mirrors.html" target="_self" title="Mirrors Store Page">
Mirrors
</a><hr size="1" width="90%">


<a name="Motors and Pumps" id="motors " href="motors_pumps.html" target="_self" title="Motors & Pumps Storefront Page">
Motors &amp; Pumps
</a><br><hr size="1" width="90%">


<a name="Radios and Cameras" id="radios " href="radios_cams.html" target="_self" title="Radios & Cameras Storefront Page">
Radios &amp; Cameras
</a><br><hr size="1" width="90%">


<a name="roofvents" id="roofvents" href="roofvents.html" target="_self" title="Roof Vents Store Page">
Roof Vents / Emergency Exits
</a><hr size="1" width="90%">


<a name="seating" id="seating" href="seating.html" target="_self" title="Seating Store Page">
Seating
</a><hr size="1" width="90%">


<a name="stoparms" id="stoparms" href="stop_arms.html" target="_self" title="Stop Arms Store Page">
Stop &amp; Crossing Arms
</a><hr size="1" width="90%">


<a name="specialneeds" id="specialneeds" href="specialneeds.html" target="_self" title="Special Needs Store Page">
Special Needs
</a><hr size="1" width="90%">


<a name="tools" id="tools" href="tools.html" target="_self" title="Tools Store Page">
Tools
</a><br><hr size="1" width="90%">

<a name="wipers" id="wipers" href="wipers.html" target="_self" title="Wipers Store Page">
Wipers
</a><br>
<br><br><br>




</td>


<!-- SPACER CELL -->
<td width="15"></td>


<td width="521" align="left" valign="top"><!-- CONTENT CELL -->
<div id="content">


<!-- Empty field [Text1] -->
<p>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>

<table border="1" bordercolordark="#ffffcc" bordercolorlight="#ffffff" cellpadding="1" cellspacing="2">
</table>
<!-- Empty field [Text2] -->

</div>

<!-- CONTENT CELL ENDS--></td></tr>

<!-- Footer Nav Begins-->

</table>
<table><tr><td width="700"><hr size="1"></td></tr></table>
<!-- Footer Nav Begins-->

<table border=0>
<tr><td width="519" align="center">
<div id="tabletext1">

<a name="A Parts Home" id="A Parts Home" href="http://www.apartswarehouse.com/links.html" title="Home Page">Home</a>
| <a name="Account" id="Account" href="http://www.apartswarehouse.com/account.html" title="User Account">Your Account</a>
| <a name="StoreFront" id="StoreFront" href="http://www.apartswarehouse.com/store/index.html" target="_blank" title="StoreFront">StoreFront</a>
| <a name="About Us" id="About Us" href="http://www.apartswarehouse.com/aboutus.html" title="About Us">About Us</a>
| <a name="Contact Us " id="Contact Us " href="http://www.apartswarehouse.com/contact.html" title="Contact">Contact Us</a>
| <a name="Links" id="Links" href="http://www.apartswarehouse.com/links.html" title="Links">Links</a>
</div></td></tr>

<tr><td width="519" align="center"><div id="tabletext2">Copyright 2006, A Parts Warehouse.</div></td></tr>
</table>

<!-- Empty field [Text3] -->
</body></div>
</html>
interwoven
 
Posts: 7
Joined: Fri Jun 08, 2007 9:11 pm

Postby Jim » Fri Jun 22, 2007 11:11 am

In the page you quote all those 13 <br>s between the <p> and </p> are the "links" to your pages coming from the [-- LINK storepage_template3.html --] tag. So you do not have a valid [-- DEFINE LINK_TO_PAGE --] section in the storepage_template3.html file. It should look something like

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

and it should be at the top of the template file storepage_template3.html file.

I looked at some of the page numbers that you mentioned for example page45.html and it does not have the <p> </p> section in the source. Did you perhaps give the pages a filename on the Edit Page Layout screen so they are now being generated by that name and the pages with number in them are old pages that are not being updated at all?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby interwoven » Fri Jun 22, 2007 12:21 pm

I just looked at the storepage_template3.html template in the back office through Edit Custom Page Template. It appears to have the Define Link to Page section exactly as you suggested but with some spacing issues ( I took out a few spaces in front of some of the separate lines so the section appears flush left), but all tags are on lines by themselves and otherwise exactly as your example.
But yes, I did name the pages (I beleive in the Edit Page Content area) and I see that I didnt name them as filenames with an html extention. I was assuming Shopsite would generate actual working file names. I wonder if this is the problem?
interwoven
 
Posts: 7
Joined: Fri Jun 08, 2007 9:11 pm

Postby Jim » Fri Jun 22, 2007 1:02 pm

ShopSite doesn't know what file extention to put on a file that it generates because the code in your template could make it an html page an shtml page a php page etc. So you must specify the full filename including the extention.

If this was the case the changes to your template probably didn't have any affect and the original was probably working.

If your filename didn't have an extention then the page was probably being generated all along but you couldn't find the page when you looked for it in the browser because you were looking for a specific file type (.html) and the file wasn't of that type.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 29 guests