Hi Al,

The fiddly bits, nothing terribly exciting, involve resolving all of the
dynamic links into static links, and the testing of this functionality.

For example, take a simple site which is one "menu" page that links to a
bunch of "detail" pages, just a single level.

First, build the dynamic site, using FLiP and FB3 as usual.

Now we want to create a static site.  So we use
CFMODULE/CFSAVECONTENT/CFFILE to save the menu page, and we CFLOOP through
all the Details recordset, using CFMODULE/CFSAVECONTENT/CFFILE to save the
detail pages.

But of course all of the links on the menu page still point to
"index.cfm?fuseaction=site.showdetail&detailID=23" or similar.  We don't
want that - we want the static menu to point to "detail23.htm" or whatever.

So I add an ATTRIBUTE to the app, called "attributes.resolvelinks" or
possibly "attributes.staticversion".  Use this in the CFMODULE calls to tell
the app that it needs to generate static HTML links instead of dynamic FB
links.  Then, of course, you have to get your display fuses (forms too)to
handle the new attribute, and generate appropriately named links.

It's no big deal.

As a matter of interest, I *used* to do this, pre Fusebox, using CFHTTP.
Talk about slow.  Talk about unreliable.  The CFMODULE method absolutely
flies.

See ya,
Wise ol' Lee
(Is Wise Ol' the same as SmartArse?)


-----Original Message-----
From: Alan McCollough [mailto:[EMAIL PROTECTED]]


Well, cough up the interesting little details! I'm looking to do this very
thing, and if wise ol' Lee has already gone down that road, I'd like to
avoid any of the pitfalls.


> -----Original Message-----
> From: BORKMAN Lee [SMTP:[EMAIL PROTECTED]]
> 
> I do this for quite a few sites.
>  
> The basic idea is:
> 
> *     CFMODULE to execute your dynamically-generated pages;
> *     CFSAVECONTENT to capture the dynamically-generated pages; and
> *     CFFILE to save the dynamically-generated page out to a static HTML
> file.
> 
> That's about it.  There's some interesting little details, but it's no
> great problem.
> 
> -----Original Message-----
> From: Wallick, Mike [mailto:[EMAIL PROTECTED]]
> 
> Hey all. I remember quite a long time ago, there was some talk about using
> Fusebox to go an build a static snapshot of your site. 


IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to