There is a much easier way....
use cffile to list all of the .cfm files in the desired directory(s),
then loop through them using cfhttp to read in the text of the page.
I have an html style comment in the pages that I don't want indexed that
just says <!-- DO NOT INDEX -->.. so I see if that text is in the page.
If not, I add it to the verity index.
Al Musella, DPM
A1webs.com
At 04:33 PM 10/3/2001 +0100, you wrote:
>Ok,
>
>I have been trying to think of ways to create a static copy of a site for
>Verity to index properly. At the moment it is built from loads of includes
>etc so if you point verity at it just makes a mess.
>
>What I want to do is include something at the bottom of every page which
>essentially calls itself and writes a copy to a directory which verity
>indexes. At the top of the copy it would also include <cflocation
>url="realurl"> so that when the user hits a link in a search results page
>they go straight to the real copy.
>
>Obviously you'd have to keep track of which one's had been hit and whether
>to re-save it or not.
>
>Would it be possible to drop the content of a page into the output of a
>cffile? How would I avoid the problem of the page going into a loop?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists