Tinderbox v10 Icon

^url( item )^


Export Code Type: 

Export Code Scope of Action: 

Export Code First Added: 

Export Code in Current Baseline: 

Export Code Last Altered: 

 Creation of Links   [other codes of this type]

 item   [codes with similar scope]

 v1.0.0

 Baseline

 As at baseline


^url( item )^

The relative URL of the exported HTML web page for the item. The URL of an alias to a note is the URL attribute of that note's original. It is effectively ^host^ + ^path^ + ^file(note)^.

Do not confuse this with ^value(URL)^ which will return the content of the note's URL field.

^url(this)^ will return the relative path from the current page to the page the included note creates when it is exported. If the note is not exported, but only appears on included pages, ^url(this)^ is undefined.

As ^url()^ only supplies the 'href' argument value for an HTML link, if you want to customise your link, e.g. by setting a CSS class argument, you can do that in the template rather than needing to do so in the TB code itself.

^url(this)^ gives a relative path from the current page to the note; by comparison, ^path(this) gives the path from the top level of the site to the note. Thus:

^url(BorderBevel)^ gives: "../../Use_of_Attributes/Attribute_Listings/System_Attribute_List/BorderBevel.html".
^path(BorderBevel)^ gives: "index/Automating_Tinderbox/Coding/Use_of_Attributes/Attribute_Listings/System_Attribute_List/BorderBevel.html".
^url(this)^ gives: "#".
^path(this)^ gives: "index/Automating_Tinderbox/Coding/Export_Codes/Export_Codes_-_Full_Listing/url_item.html".

To make a deliberate 'manual' HTML link to another note see ^linkTo()^.


See also—notes linking to here: