Results 1 to 2 of 2
  1. #1
    Full Member
    Join Date
    January 17th, 2005
    I want to build static html pages using a SSI to pull in a single product detail (like your "detail" templates).

    I have read and played with the script, but I can't seem to figure it out.

    Anyone have any suggestions?


  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Toronto, Canada
    As described in the "Quick Tutorial" (point 3), you can include XML via an SSI statement as follows:

    < !--#include virtual="/cgi-bin/amazon/"-->

    For example, contains the following HTML:

    < html>
    < body>
    < !--#include virtual="/cgi-bin/"-->
    < /body>
    < /html>

    (note the ssi parameter in this SSI statement).

    The SSI statement is pulling in the result of doing an ASIN search for the product with ASIN 0151008116 which is the book "The Life of Pi". The above HTML is minimal -- it just shows the product details -- you can "beef up" the HTML with whatever else you want on that page. Just put the SSI statement where you want the results to show up on the page.

    You could also create an HTML file and put only the following line in it:

    < !--#include virtual="/cgi-bin/"-->

    (note that there is _no_ ssi parameter in this SSI statement).

    This will create the result such as at (it contains this single line of SSI) where the "full" output of XML is available at a .html URL rather than a /cgi-bin based URL. Note that the links on that page, such as the "Books" tab at the top, call at /cgi-bin/ -- thus you cannot entirely hide using this SSI method.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. random links in each detail page
    By gp800v in forum WebMerge (
    Replies: 4
    Last Post: January 7th, 2011, 05:31 PM
  2. How can I search, link index page to detail page?
    By rbass in forum WebMerge (
    Replies: 2
    Last Post: August 15th, 2008, 11:33 AM
  3. Detail page not working
    By Babrees in forum WebMerge (
    Replies: 4
    Last Post: November 9th, 2005, 11:18 PM
  4. Include page/code (SSI)
    By Cursal in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: July 19th, 2005, 07:30 AM
  5. how do I link from a detail page back up to a category/index page?
    By pw3909 in forum WebMerge (
    Replies: 3
    Last Post: May 4th, 2004, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts