^file( item )^

Tinderbox Icon


Code Type:   Data Property
Code Scope of Action:   item

^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: fileitem.html

The export filename of note "HTMLExportBefore" (^file(HTMLExportBefore)^) is: 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.


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

Up: Item-based

A Tinderbox Reference File : Export Codes : Export Code Scope : Item-based : ^file( item )^

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