HTMLFileNameMaxLength

Tinderbox Icon


Attribute Data Type:   number
Attribute Default Value:   24
Atrribute Group:   HTML
Atrribute Purpose:   HTML exported file configuration
Attribute Inherited from Preferences?     No
Attribute Read-Only?   No

Specifies the maximum number of characters allowed in exported filenames (default is 24). Originally, in early versions the default was 8 and is not updated by opening the TBX in newer versions. For TBXs with the old default is can be useful to set a figure greater than 8 to decrease the chance of name clashes amidst exported files.

The maximum value supported is 31 [sic], where this is the total of HTMLFileNameMaxLength, the period and the length of HTMLExportExtension; e.g "myname" + "." + "html". As the latter defaults to '.html' - 5 characters, the maximum possible length is 26 characters. Using a 4 character length extension like '.htm' will raise the effective limit to 27 characters.

It appears Tinderbox (as a v4.0) is still using old pre-OS10 filename limits. This should allow 32 characters, but using 27+'.html' results in pages with a 'h#0' extension that are effectively unusable as web pages. Using 28 or greater results in no export at all.

Setting the value to 28 or more results in a silent failure with no export occurring and no warning to the user.

Given the later it is not clear whether the 'legacy' limit of 31 is deliberate or whether something else in the app's export system can't cope with long filenames.

The default value is 24. Note that the default for HTMLFilenameLowerCase also changes to false. In older TBX's created with the original default value, if you try a ';' reset of the value, it sets the old default of 8.

From v5.9.2, the maximum supported length - including the extension - increased to 128 characters.


Possible relevant notes (via "Similar Notes" feature):

Up: HTML Attributes

A Tinderbox Reference File : Attributes : Attribute Groups within Tinderbox : HTML Attributes : HTMLFileNameMaxLength

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox