The Metadata Plugin
Metadata Management for Manila
 
Site last updated
2/24/2006; 12:33:21 PM
 
Home

Why

Features

FAQ

Updates

Documentation

Download

Developers

Bugs

Feedback

Discuss

Planned
Features

 
 

Re: Subtemplates break on static rendering

Author:   Jared Jackson  
Posted: 3/10/2004; 11:57:27 AM
Topic: Subtemplates break on static rendering
Msg #: 1962 (in response to 1960)
Prev/Next: 1961/1963
Reads: 10087

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:

Dynamic
.
.
.
filters.pageFilter: templatemetatype is 'template'
filters.pageFilter: using multiple templates
templates.subTemplate: beginning
showval: beginning
showval: msgNum = 16
showval: metavalue = article_2.0
showval: val=article_2.0
{lpar;"showval: ", "article_2.0"}
showval: ending
showval: beginning
showval: msgNum = 16
showval: metavalue = article_2.0
showval: val=article_2.0
{lpar;"showval: ", "article_2.0"}
showval: ending
templates.subTemplate: value of templatemetatype is 'article_2.0'
templates.subTemplate: subtemplating
templates.subTemplate: ending
triggers.evaluate: beginning
utils.act_createGridTable: beginning
.
.
.
Static Rendering
.
.
.
filters.pageFilter: templatemetatype is 'template'
filters.pageFilter: using multiple templates
templates.subTemplate: beginning
showval: beginning
triggers.evaluate: beginning
utils.act_createGridTable: beginning
.
.
.


There are responses to this message:


This page last updated Wednesday, March 10, 2004 at 12:08:07 PM. (10087)