TemplateObjectLink
Contents |
Website URL Links
link.url(#page#,#param1#,#param2#,#param3#,#param4#)
the url function will take one full url or a page name and url upto 5 parameters
<a href="{link.url(#page#,#param1#,#param2#,#param3#,#param4#)}">Link Text</a>
Child Functions
most links passed to the templates will have a nofollow value that can be passed to this function to correctly set the nofollow rel html tag link.nofollow()
Image Links
simple usage:
// Local resource, ether direct from our image servers or our CDN
<img src="{link.image(#products/servers/image-of-a-server.jpg#)}" alt="ALT TEXT HERE"/>
// converts to https when in a secure connection
<img src="{link.image(#http://www.example.com/images/image.jpg#)}" alt="ALT TEXT HERE"/>
Notes
- passing full urls to this function will automatically convert http to https when in a secure connection
CSS links
{link.css()}
Javascript Links
{link.javascript()}
Anchor links
{link.anchor()}
Email Links
{link.email()}
