New Message: manilaMacros.viewDirectory and Static Rendering
webmaster at userland.com
webmaster at userland.com
Fri Oct 26 16:44:49 PDT 2001
A new message was posted:
Address: http://frontier.userland.com/discuss/msgReader$9033
By: Tom Clifton (tclifton at es-designs.com)
The behavior of this macro is inconsistent when called during static rendering. If a home page is rendered, the top level of the directory appears on the home page as expected. If any other page/story is rendered, however, the macro returns "[Macro error: Can't evaluate the expression because the name "method" hasn't been defined.]"
The error is generated when manilaSuite.viewDirectory asks
if pta^.method == "GET"
Apparently, method is not defined in pta^ when stories are rendered, but is defined and set to "GET" when the home page is rendered. Testing for and setting pta^.method to "GET" allows viewDirectory to produce the same results on static renderings of both the home page and stories.
I don't know which behavior is "correct", though I like being able to render the top level of a directory on a static page.
This is a Manila site.. http://manila.userland.com/.
More information about the Frontier-Server
mailing list