|
|
 |
 |
 |
manilaSuite.staticRendering.filters.FirstFilter
Manila does not support Scalable Content. This is the ability to render a single content page in multiple formats or to mutiple destinations using templates and the ftpSite parameters; it is a standard feature of the underlying html suite upon which Manila is based.
This patch is one of a series to the static rendering of Manila that restores that ability. One of our clients used that ability to excellent effect in his 2 version Glasgow West End website which is manitaiend in manila and rendered in 2 versions.
Manila Managing Editosr can use the "ManilaFixer Plugin" to maintain additional templates and ftpSites for their websites.
Amended Script
| |
«Declare that this is a static rendering to all who care. |
| |
pta^.flManilaStaticRendering = true |
| |
bundle //get prefs from Manila site |
| |
pta^.flPrintFriendlyTemplate = false //PBS 09/29/01: print friendly template support |
| |
local (adrNewsSite = parentOf (pta^.adrSiteRootTable^)) |
| |
local (adrManilaSite = parentOf (adrNewsSite^)) |
| |
local (s = string (adrManilaSite^.["#template"])) |
| |
if defined(pta^.indirectTemplate) and pta^.indirectTemplate //01/01/01, 22:33:07 by DAB |
| |
s = string(adrManilaSite^.["#templates"].[pta^.template]) |
| |
pta^.indirectTemplateID = pta^.template //name is useful to macros |
| |
pta^.indirectTemplate = false |
| |
bundle //PBS 10/14/00: site may be using a home page template |
| |
bundle //meta tags, CSS, javaScript |
| |
bundle //membership box -- always empty string, because we don't know if the person is logged in or not |
| |
bundle //dates and times -- 05/25/00 JES: use site's time zone |
| |
bundle //tagLine, last update, siteName, editorial menu, etc. |
| |
bundle //07/19/00 PBS: dg read access, cow skull |
| |
s = string.replace (s, "<title>", "<Title>", false) |
| |
«s = string.replaceAll (s, adrManilaSite^.["#ftpSite"].url, pta^.ftpSite^.url, false) |
| |
s = manilaSuite.staticRendering.patchLocalUrls (s) |
| |
table.assign (@pta^.template, s) |
| |
bundle //set up the html.refGlossary callback which filters local URLs |
Relative to Frontier version 9.7b10
|