> I know it was fixed, cos in the 12 Sept version, there is the following
code in WebMacroSiteLayout
>
> // FIXME: This should be specified by looking at
> //
services.TurbineTemplateService.default.layout.template=/default.wm
> if (templateName == null)
> templateName = "/default.wm";
>
> ...but its not in the latest version.
I removed this code.
The steps are supposed to work like this:
TemplatePage (WebMacroSitePage's parent) requests the layout template name
from the TemplateService and places it into the TemplateInfo object, so that
it is available to the Layout module right before the lines that I removed.
TemplateService checks to see if the screen template has already been
associated with a layout template. If it has not it attempts to find one,
following a directory structure/filename naming scheme. If it does not find
a match, it attempts to read a default value from the properties file. And
as a final last resort, it assigns the value default.html or default.wm or
whatever the extension would be. If the extension was not set, it should
return default.html.
I do not see how it could be null. It should not be, so it is a bug. I
removed the code in question because it would be covering up a bug. Now
please help me find it. I do not get a null value, so it is difficult for
me to debug.
John
----- Original Message -----
From: Chris Kimpton <[EMAIL PROTECTED]>
To: turbine <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 5:51 AM
Subject: [bug report]The default template fix to WebMacroSiteLayout
don'twork
> Hi,
>
> Whoever changed it - didn't do it quite right - I am getting a null for
the layout template under webmacro.
>
>
> I can't track down where it should be setting it in the new version -
although maybe thats the problem.
>
> Have fun,
> Chris
> ---
> "surely it is madness to accept life as it is and not as it could be"
> ______________________________________________
> FREE Personalized Email at Mail.com
> Sign up at http://www.mail.com/?sr=signup
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]