Export Code Type:
Export Code Scope of Action:
Export Code First Added:
Export Code in Current Baseline:
Export Code Altered Since Baseline:
Data Property [other codes of this type]
Item [codes with similar scope]
v1.0.0
Baseline
As at baseline
^file( item )^
The filename of the file for the web page for an 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: 100).
The export filename of this note (^file^) is: 'file_item.html'.
Via action code, use:
^value($HTMLExportPath.split("/").at(-1))^
which gives: 'file_item.html'.
Legacy
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.
See also—notes linking to here: