buildLink

buildLink

Builds a link to farcry content; works out whether the link is a symlink or normal farcry link and checks for friendly url.

Metadata

Attributes

Name Type Required Default Options Description
href string No the actual href to link to
objectid string No Added to url parameters; navigation obj id
alias string No Navigation alias to use to find the objectid
type string No Added to url parameters: Typename used with type webskin views
view string No Added to url parameters: Webskin name used to render the page layout
bodyView string No Added to url parameters: Webskin name used to render the body content
linktext string No Text used for the link
target string No target window for link
externallink string No
id string No Anchor tag ID
class string No Anchor tag classes
style string No Anchor tag styles
title string No Anchor tag title text
urlOnly string No false
r_url string No Define a variable to pass the link back (instead of writting out via the tag). Note setting urlOnly invalidates this setting
xCode string No eXtra code to be placed inside the anchor tag
includeDomain string No false
Domain string No #cgi.http_host#
stParameters string No #StructNew()#
urlParameters string No
JSWindow string No 0 Default to not using a Javascript Window popup
stJSParameters string No #StructNew()#
anchor string No Anchor to place at the end of the URL string.
onclick string No the js code to place in onclick
ampDelim string No & the default ampersand delimiter as used by getLink
rbkey string No If set, FarCry will use the specified resource for @text and @title with the provided attribute values as the defaults