This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

tv-filter-export-link Variable

28th August 2017 at 9:57am
Configuration Variables Core Variables Variables

New in: 5.1.15 The tv-filter-export-link variable controls the value of the href attribute on the HTML a element generated by the $link widget. If defined, it takes precedence over the tv-wikilink-template Variable.

This variable has no useful effect when TiddlyWiki is running in a browser, as the href attribute is ignored there – links between tiddlers are performed by JavaScript instead. The variable comes into play when one is using the Node.js configuration to generate a static version of a wiki.

The variable is treated as a filter that is given the target tiddler title as input. The filter is evaluated and the first result is used as the href attribute.

For example:

\define tv-filter-export-link() [encodeuricomponent[]encodeuricomponent[]addsuffix[.html]]

See also the tv-get-export-link variable, which dominates over this one.