Results 1 to 2 of 2
February 5th, 2003, 06:08 AM #1
- 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?
February 5th, 2003, 07:07 AM #2
As described in the "Quick Tutorial" (point 3), you can include amazon.pl XML via an SSI statement as follows:
< !--#include virtual="/cgi-bin/amazon/amazon.pl?ssi&PARAMETERS"-->
For example, http://www.bime.com/ssi.html contains the following HTML:
< !--#include virtual="/cgi-bin/amazon.pl?ssi&asinsearch=0151008116"-->
(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/amazon.pl?asinsearch=0151008116"-->
(note that there is _no_ ssi parameter in this SSI statement).
This will create the result such as at http://www.bime.com/ssi2.html (it contains this single line of SSI) where the "full" output of amazon.pl XML is available at a .html URL rather than a /cgi-bin based URL. Note that the amazon.pl links on that page, such as the "Books" tab at the top, call amazon.pl at /cgi-bin/amazon.pl -- thus you cannot entirely hide amazon.pl using this SSI method.
per: David Cusimano
By gp800v in forum WebMerge (Fourthworld.com)Replies: 4Last Post: January 7th, 2011, 05:31 PM
By rbass in forum WebMerge (Fourthworld.com)Replies: 2Last Post: August 15th, 2008, 11:33 AM
By Babrees in forum WebMerge (Fourthworld.com)Replies: 4Last Post: November 9th, 2005, 11:18 PM
By Cursal in forum Programming / Datafeeds / ToolsReplies: 5Last Post: July 19th, 2005, 07:30 AM
By pw3909 in forum WebMerge (Fourthworld.com)Replies: 3Last Post: May 4th, 2004, 05:00 PM