New Message: Re: Override File Extension for One Page on Static Render

webmaster at userland.com webmaster at userland.com
Thu Jul 22 02:20:38 PDT 2004


A new message was posted:

Address: http://manila.userland.com/discuss/msgReader$504

By: Alan German (asg at erols.com)

What am I reading wrong?

You're not. If I set the fileExtension in firstFilter, it _does_ stick.

The problem I've encountered is that I can't test for a flag in pta^, set by a Manila macro, because the page has not been rendered, which would execute the macro, thus setting the flag. The flag does not exist when firstFilter runs, so I have no way of knowing whether I should or should not change fileExtension.

I want author-control over the fileExtension override -- that's what macros are for -- but in this case, it's not workable in firstFilter.

The finalFilter approach is working just fine now, as far as writing a file with the correct file extension. There is a problem still because the browser is redirected to the newly rendered page (on a single-page render), and that's still trying to go to a URL with the un-changed fileExtension. That's merely an annoyance for now, I'll work on fixing this later.




More information about the Frontier-Users mailing list