|
|
 |
 |
 |
manilaSuite.staticRendering.displayRenderButton
Ensure the button name in static rendering is localised correctly
| on displayRenderButton (pta=nil) |
| |
bundle //check the various reasons not to display a button |
| |
if pta^.flPrintFriendlyTemplate //PBS 09/28/01: print-friendly template support |
| |
if not (manilaSuite.editors.managingEditorTest (pta)) //must be ME |
| |
if manilaSuite.staticRendering.isStaticRendering () //don't display if this is a static rendering that's going on |
| |
if not (manilaSuite.staticRendering.isEnabled (pta^.adrSiteRootTable)) //static rendering must be enabled |
| |
if not (manilaSuite.getNewsSitePref ("flStaticRenderingButton", default:false, flCreate:true)) //the site must want a render this page button |
| |
if manilaMacros.pathAtt("noStaticREnder", false, true) «inherited path attribute 7/29/06, 1:12:49 PM by DAB |
| |
local (relativePath, flRenderable = false) |
| |
bundle //determine if this is a render-able page and get the path |
| |
bundle //handle actually rendering the page, if this is a post |
| |
add ("<form method=\"post\" action=\"" + pta^.uri + "\" name=\"renderThisPageForm\">\r") |
| |
add ("<input type=\"submit\" value=\"" + manilaSuite.getString ("admin.renderThisPageButton") + "\" name=\"renderThisPage\">\r") |
| |
return (manilaSuite.unTaint (htmlText)) |
Relative to Frontier version 9.7b10
|