^linkTo( item [, data] [,css class] )^

Tinderbox Icon


Code Type:   Link Creation
Code Scope of Action:   item

^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 causes the HTML link output to include a class="" attribute.

^linkTo()^ exports links from included files relative to the current page.

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

To get the relative URL of a note, use ^url()^.


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

Up: Export Codes - Full Listing
Previous: ^indent( [data][, N] )^  Next: ^outboundBasicLinks( [start, list-item-prefix, list-item-suffix, end, type] )^ 

A Tinderbox Reference File : Export Codes : Export Codes - Full Listing : ^linkTo( item [, data] [,css class] )^

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