[ic] Editing the index.html?

Ed LaFrance edl@newmediaems.com
Tue, 10 Apr 2001 09:07:09 -0700


At 09:27 AM 04/10/2001 +0300, you wrote:
>It's true, because the page is not part of the catalog structure.
>
>Rene
>
> > -----Original Message-----
> > From: interchange-users-admin@lists.akopia.com
> > [mailto:interchange-users-admin@lists.akopia.com]On Behalf Of
> > bobby@cybersoup.com
> > Sent: 10 April 2001 02:49
> > To: Interchange-users@lists.akopia.com
> > Subject: [ic] Editing the index.html?
> >
> >
> > It seems that I can not edit the index.html page found in the sub
> > directory titled "html" in the construct directory through a store
> > admin.  Is this true?
> >

What you can do is create the page within your catalog (perhaps in a 
subdirectory), then use the static page building function to build a static 
copy and place it in you public html directory (I glanced at the Static* 
directives for catalog.cfg and it appears that they support this, but I may 
be wrong).

An alternative is to create the page in your catalog like before, then use 
a shell script to build a static copy and put it in your public html directory:

#!/bin/sh
GET http://www.yourdomain.com/cgi-bin/yourcat/yourpage.html >temp
perl -i -p -e 's/\?id\=[\w\d]{8}//g' temp
mv temp /home/you/html/index.html

Save the above in a file and run it as a shell script.  If all is well, you 
can use cron to call the script at the interval of your choice (i.e. 
nightly) to update your static page as your catalog content changes. Note 
that you need the LWP::Simple Perl module installed for this to work (GET 
is a script that comes with LWP::Simple).

- Ed L.



===============================================================
**** Virtual Hosting w/private IC Installation, $65/month! ****
---------------------------------------------------------------
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================