space Baylys
Just practicing to pass the Turing test.
space
space
space
space
Developer for Hire!
space
addedValues Plugin
space

Home

What's new

Bayly.Root

Cornershop Plugin

Career

edutools Root

Enhancements

Interests

linguist Plugin

Manila

Patches

space

mainresponder

manilaData

manilamacros

manilaSuite

space
space

admin

backups

discuss

gems

getCanonicalSiteName

hierarchyPage

hosting

html

mail

member

members

news

plugins

prefs

referer

renderNewsPage

rpcHandlers

rpcUtils

search

sendMail

siteStructure

staticRendering

space
space

convertFilename

convertUrl

discussCallback

displayRenderButton

drawNavigatorWithFiltering

filters

getRelativePath

getSuffix

patchLocalURLs

renderHierarchyPage

renderHomePage

renderPage

space

storyList

space

system

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

manilaSuite.staticRendering.getSuffix

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 manitained in Manila and rendered in 2 versions.

Manila Managing Editors can use the "ManilaFixer Plugin" to maintain additional templates and ftpSites for their websites.

Amended Script

on getSuffix ()
  «Changes
 unaltered lines omitted
 
  local (pta = html.getPageTableAddress ())
 
  if defined (pta^.fileExtension)
 unaltered lines omitted
 
  «if defined (pta^.adrStaticSite^.["#prefs"].defaultFilename)
 unaltered lines omitted
  local (default = config.manila.prefs.staticRenderingDefaultFilename)
  if defined (pta^.adrStaticSite^.["#prefs"].defaultFilename) //added 00/12/31, 17:16:00 by DAB
  default = pta^.adrStaticSite^.["#prefs"].defaultFilename
  local (ctFields = string.countFields (default, '.'))
  local (suffix)
  suffix = "." + string.nthField (default, '.', ctFields)
  pta^.fileExtension = suffix
 
  return (suffix)

Relative to Frontier version 9.7b10