To create a static HTML version of a farcry site (say for off-line usage) could be fairly complicated- for the reasons you mentioned. I needed to do it recently and I had all sorts of complicated ways of doing it ready- using the caching custom tag, with edits to the buildlink tag etc.
It turned out that the best thing to do was use wget to get the whole site. It changes all the links to be relative including images etc. The FU /go/ path remained, but changing that would be easy... just one global change thru the folder structure using Homesite or Dreamweaver. Multiple items under one nav don't have friendly urls... they are like /index.cfm?objectid=blah. Wget handles that fine too.... The one change i DID have to make was a small one to the buildlink tag. At the moment it has no trailing slash at the end of a friendly url. This means that wget does not recognise a path as a folder.... so it saves a file as say /go/about-us "about-us" being a file with no extension. If the friendly url had a trailing slash, the file would be saved as /go/about-us/index.html Perfect! ;-) I have a buildlink tag here, if you want to mail me off list for it. That handles one part of your question, I'm not sure about saving XML for flash etc. Regards Gavin On Fri, 28 Jan 2005 10:58:01 -0500, Scott Talsma <[EMAIL PROTECTED]> wrote: > How are one going about publishing content if it is to be static (e.g. > for a offline version--I am using FarCry to create XML files for > comsumption by Flash)? Say I have a site structure spanning several > levels. Using FUs, I can concieve the directory structure. If I > publish everything into a directory /go/, the I would have > > /go/index.cfm > /go/products/index.cfm > /go/elearning/consulting/index.cfm > /go/elearning/custom-development/index.cfm > /go/elearning/our-clients/index.cfm > /go/about-us/our-story/index.cfm > /go/about-us/our-culture/index.cfm > > etc. > > I could extend the type to add a publish to file option, or just extend > the Approve option and use FU/buildLink to create a path. Then > recursively create the directories, and finally save the file. > > Hoes does one handle multiple objects that are under a single navigation > node? Use the ObjectID instead of index.cfm for all objects? > > Looking into types/RenderOverview, approving on content object invokes > navajo/objectStatus. Which is to say that approving content does not > call a method of the type (other than setData). My first instinct would > be to override setData(), flag the status, call super.setData(), render > the object and then save to file as above. But how to render the > object? CFHTTP? > > Is there better approach built into Farcry I am not considering (e.g. > tying into the caching engine)? > > --- > You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > --- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
