|
The Metadata Plugin Metadata Management for Manila |
Site last updated 2/24/2006; 12:33:21 PM |
|
Re: Subtemplates break on static rendering
Here is what I have found out so far: 1) In the pagefilter for metaData, we test to see if multiple templates are being used.
if templatemetatype { // if user is using multiple templates «if flDebug «metadatasuite.utils.log(myname,"using multiple templates") metaDataSuite.templates.subTemplate(templatemetatype)} On my system, this is working properly. The call to metaDataSuite.templates.subTemplate is being made for both the dynamic home page and when the page is statically rendered. 2) In metaDataSuite.templates.subTemplate, there is a conditional test to check if a metaname has been passed to the script.
if not metaname { // no sense trying if we haven't been given a meta type «if flDebug «metadatasuite.utils.log(myname,"no meta type given; aborting") return("")} When I load the home page from Manila (dynamic), the metaname is "template" (my metaname for a template selector). The script passes the test above and continues down the script to properly place my subtemplate into the pta^.template. But when I render the home page to the static server, the test fails for reasons I don't yet understand. I added a line to copy the metaname to the scratchpad. It is the same in both cases. So why does it fail on static rendering, but passes on dynamic rendering. Here is the debugging log relevant to the subtemplate:
There are responses to this message:
|
|||||||||||||||||||
| This page last updated Wednesday, March 10, 2004 at 12:08:07 PM. | (10087) |