Lowercase location scheme

Is there a toLower() function I can add to our location scheme so that all files are published in lower case?

You should be able to call the toLowerCase() method on a String variable.

The following is an example location scheme that uses the toLowerCase() method:

$default_filename = 'item' + $sys.item.getProperty('rx:sys_contentid').String;
$result = $sys.pub_path
+ $sys.template.prefix
+ $rx.location.getFirstDefined($sys.item, 'rx:filename', $default_filename)
+ $sys.page_suffix
+ $rx.location.getFirstDefined($sys.item, 'rx:sys_suffix', '.html');

Thanks, John. That’s exactly what I needed.