This version is out of date, covering development as far as v4.2.5. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
A Tinderbox Reference File : Export Codes : Export Codes - Full Listing : ^linkTo( item [, data] [,css class] )^ |
^linkTo( item [, data] [,css class] )^ |
^linkTo( item [, data] [,css class] )^
Exports the data as the anchor text of a link to the Web page corresponding to the designated item (or note). The data can be simply some text or another export function's result and may include HTML mark-up code. The data argument is optional, and if not used the name of the destination note is used. The item can be a named note, an item object or a path (e.g. /headlines/latest/).
If included, the css class element (new to v3.5.1) causes the HTML link output to include a class="" attribute. However, it can be useful at times, when including a container listing as a navbar or TOC, so v3.5.3 re-introduces export of the expected code once more.
From v3.5.0 to v3.5.2, ^linkTo(this)^ was treated as an error.
Example link to "Colophon": Colophon
Same but with a 'data' argument: Read the Colophon
Same but with a 'data' and 'css class' argument: Read the Colophon
Up: Creation of Links | |
Previous: ^inboundTextLinks( [start, list-item-prefix, list-item-suffix, end, type] )^ | Next: ^outboundBasicLinks( [start, list-item-prefix, list-item-suffix, end, type] )^ |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]