This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

^file( item )^

Code Type: 

Code Scope of Action: 

Code First Added: 

Code Altered: 

 Data Property   [other codes of this type]

 item   [codes with similar scope]



^file( item )^

The filename of the file for the web page of a item (i.e. note). This is the combination of $HTMLExportFileName plus $HTMLExportExtension. If no item is supplied, it defaults to value of 'this'. If HTMLExportFileName is not manually set it is created dynamically at export from $Name, with the filename varying according to the length set in $HTMLFileNameMaxLength (for aTbRef it is currently set to: 24).

The export filename of this note (^file^) is: /index/ExportCodes/ExportCodes-FullListing/fileitem.html

The export filename of note "HTMLExportBefore" (^file(HTMLExportBefore)^) is: /index/Attributes/SystemAttributeList/HTMLExportBefore.html

But see that '^value($HTMLExportFileName+" + "+$HTMLExportExtension)^' gives: ' + .html' <-- note the missing filename! The latter problem occurs as $HTMLExportFileName is not evaluated until export.

A Tinderbox Reference File : Export Codes : Export Codes - Full Listing : ^file( item )^