Creating a Custom Page Template

A page template defines the elements and layout of a page in a store. The content of each element comes from the values that the merchant enters for the page in the ShopSite back office, and the template tells ShopSite which elements to include and how to arrange them when publishing the store.

Typically, a template contains standard HTML tags to specify the layout, and ShopSite custom template tags to specify the elements from the ShopSite database that are to appear on the page. A template can include HTML table tags, frame tags, and even JavaScript and other Web enhancements.

When ShopSite publishes a store that uses custom templates, the ShopSite parser finds all the custom tags in the template and replaces them with information from the pages and products databases.

A merchant can use the same template for all pages in a store, or choose a page template for each page in the store. For example, a store's welcome page might use one template, product pages might use another template, and customer service or "about us" pages might use a third template.

To create a page template and make it available to merchants:
  1. If you do not have experience with ShopSite, you should spend time configuring and viewing the ShopSite demo stores from both the merchant and customer perspectives. You need to have a fairly solid understanding of what information is stored for pages and products, and how the built-in templates present that information.
  2.  

     

  3. Study the custom template specification, the sample page template, and the annotated screen shot of a page produced from the template.
  4.  

  5. Use an HTML authoring program or a text editor to create a page template.
  6.  

  7. If you are using ShopSite Pro, you can upload the template from the Merchandising > Custom Templates screen. Or you can FTP the template to the correct directory:
  8.  

  9. Test your template:
  10.  

    1. Add a page to a test store and assign the template to the page.
    2.  

    3. Enter values for all the fields used by the template.
    4.  

    5. Publish the store and review the Publish Results page for any error messages.
    6.  

    7. Go to the store and view the page in a browser. Verify that all the page elements are there and that the layout looks the way you planned.
    8.  

    9. View the page using other browsers that customers might use, to make sure the page looks okay in all browsers.
    10.  

    11. Delete the values for some of the fields used by the template, then publish the store again and make sure the pages still look okay.
    12.  

    13. Check the HTML of the page by running it through an HTML validator, such as http://www.htmlhelp.com/tools/validator or http://validator.w3.org.
    14.  

    15. View the source of the page. If the ShopSite parser did not recognize a tag, or if a database field was empty, it replaced the ShopSite custom tag with an HTML comment tag containing information about the problem.

     

  11. Make any necessary changes and test the template again, then tell the merchant that it is available. The merchant should be able to select the template from the Add a Page screen (advanced editing version) or the Edit Page Layout screen.

ShopSite Help and Resource Center
February 22, 2002
Give Feedback

Copyright © ShopSite, Inc.
http://www.shopsite.com