[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: MiniVend's static page building capability...
>I still haven'g got the built in static features to work.
I use the static page building feature. Here's how I do it. (Maybe this
should go in the FAQ someone is working on)
I use it to create static pages that can be read by search engines in my
public_html directory.
No guarantee this setup will work for you, but here goes.
1. catalog.cfg
Static Yes
StaticAll No
StaticDepth 2
StaticDir /pathtodir/public_html/directory/info # so they can be read by
search engines
StaticPage info
2. Create a file in your pages directory called "info.html". Put your
searches in this file like this:
------------------------
<HTML>
[tag flag build][value itemno][/tag]
[page scan/se=Adaptogens/sf=type/sp=inforesults/ml=1000] Adaptogens[/page]
[page scan/se=Arthritis/sf=type/sp=inforesults/ml=1000] Arthritis[/page
<BR>
</BODY>
</HTML>
------------------------
3. Create a file called inforesults.html in your pages directory. Here's
what mine looks like:
-----------------------
<HTML>
[tag flag build][value mv_searchspec][/tag]
<HEAD>
<TITLE>[search-list][on-change type][condition][item-field
type][/condition][item-field type][/on-change type][/search-list]
...Products From XYZ Company</TITLE>
<META NAME="description" CONTENT="[search-list][item-field headline] -
[/search-list]">
<META NAME="keywords" CONTENT="[search-list][item-field shdesc],
[/search-list]">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<TABLE WIDTH="100%" CELLSPACING="0" BORDER="0" CELLPADDING="0">
<TR>
<TD ALIGN="center">
<A HREF="http://www.mycompany.com/cgibin/mystore.cgi"><IMG SRC="[var
SMLOGO]" ALT="[var COMPANY]" BORDER="0"></A><BR>
<A HREF="http://www.mycompany.com/cgibin/mystore.cgi"><IMG SRC="[var
COLOGO]" ALT="[var COMPANY]" BORDER="0"></A><BR>
</TD>
<TD ALIGN="center" VALIGN="MIDDLE">
<A HREF="http://www.mycompany.com/cgibin/mystore.cgi"><IMG SRC="[var
AMMOST]" ALT="[var COMPANY]" BORDER="0"></A><BR>
</TD>
</TR>
</TABLE>
<CENTER><H3><FONT COLOR="#006633">
Blah Blah Blah.</FONT></H3>
<A HREF="http://www.mycompany.com/cgibin/mystore.cgi" TARGET="_top">Click
Here for On-Line Ordering System</A><BR><BR>
</CENTER>
<P>
[search-list]
[sort][value sort_field1] [value sort_field2] [value sort_field3][/sort]
<BR><FONT COLOR="#006633">
<B>Product Category: [item-field type]</B></FONT> <BR><BR>
<B>[item_increment].</B>
[if data products::new::[item-code] =~ /1/i]
<IMG SRC="../staticimages/new.gif">
[/if]
<B><FONT COLOR="#0000FF">Item Number [item-field itemno]</FONT> - </B>
<B><FONT COLOR="#FF0000">[item-field shdesc]</FONT></B><BR>
[if-field headline]
<H3><I><B><FONT COLOR="#800080">[item-field
headline]</I></FONT></B><BR></H3>
[/if-field]
[if-field lgdesc1]
<B><FONT COLOR="#800000">[item-field lgdesc1]</FONT></B><BR><BR>
[/if-field]
</CENTER>
<B>Price [item-price]</B><BR><BR>
<A HREF="http://www.pennherb.com/cgibin/herbstore.cgi/[item-code]">More
Information</A><BR><BR>
<HR>
[/search-list]
[no-match]
Sorry, no matches for [value mv_searchspec].
[/no-match]
[more-list]
<B>Links to more matches:</B><BR>
[more]
[/more-list]
<P ALIGN=CENTER>
<CENTER>
__COPYRIGHT__
</CENTER>
<!-- current page: @@MV_PAGE@@ -->
</body> </html>
-----------------------
4. Create a file in mvend/bin called "static_page.s" This is the script that
will do the build. Put this command in the file.
---------------
/pathto/mvend/bin/start -test -build nameofyourstore > static_page.err
---------------
5. Run the script. This will create the static pages. Errors will appear in
the err file.
That's all folks.
--
Bill Betz
bill@pennherb.com
Penn Herb Company, Ltd.
--
Visit our websites at:
http://www.pennherb.com and http://www.olbas.com
--
Over 7000 herbs and healthy products on line at:
http://www.pennherb.com/cgibin/herbstore.cgi
--