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.convertFilename

Userland made a design decision that statically rendered sites would never need upper or mixed case urls. This is not true in our experience, and we had to support the users choice of case for his urls.

This patch restores that ability by honouring the lowercasefilename directive (which in userland static Manila websites is always true).

The Manila Managing Editor can use the "ManilaFixer Plugin" to change this preference in his site.

Amended Script

on convertFilename (fname)
  «Changes
 unaltered lines omitted
 
  local (pta = html.getPageTableAddress ())
  local (suffix = manilaSuite.staticRendering.getSuffix ())
  local (maxLength = html.getPref ("maxFileNameLength", pta))
  if maxLength == true
 unaltered lines omitted
  if defined (config.manila.prefs.staticRenderingMaxFileNameLength) //PBS 12/11/01: get from prefs
 unaltered lines omitted
  if defined (pta^.maxFileNameLength) //PBS 12/11/01: value from page table over-rides
 unaltered lines omitted
 
  local (maxLengthMinusSuffix = maxLength - sizeOf (suffix))
  if sizeOf (fname) > maxLengthMinusSuffix
 unaltered lines omitted
  «fname = string.lower (fname) + suffix
  if html.getPref("lowercasefilenames", pta) //01/02/26, 20:36:00 by DAB
  fname = string.lower (fname)
  fname = fName + suffix
 
  return (fname)

Relative to Frontier version 9.7b10