|
|
 |
 |
 |
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) |
| |
local (pta = html.getPageTableAddress ()) |
| |
local (suffix = manilaSuite.staticRendering.getSuffix ()) |
| |
local (maxLength = html.getPref ("maxFileNameLength", pta)) |
| |
if defined (config.manila.prefs.staticRenderingMaxFileNameLength) //PBS 12/11/01: get from prefs |
| |
if defined (pta^.maxFileNameLength) //PBS 12/11/01: value from page table over-rides |
| |
local (maxLengthMinusSuffix = maxLength - sizeOf (suffix)) |
| |
if sizeOf (fname) > maxLengthMinusSuffix |
| |
«fname = string.lower (fname) + suffix |
| |
if html.getPref("lowercasefilenames", pta) //01/02/26, 20:36:00 by DAB |
| |
fname = string.lower (fname) |
Relative to Frontier version 9.7b10
|