10.5 Linking to content in your own site
To link to content on your own site, you can use a link "tag" to ensure the linkl works correctly in preview and
live modes.
The link tag is comprised of a start tag ([link]) and an end tag ([/link]) around the text which you want to
appear on the page, and two attributes which are placed inside the start tag ('type' and 'id').
The type attribute is the type of page that you want to link to, not the title of it. You can use 'photo',
'gallery', 'article' or 'section'. The type 'section' refers to a site section, e.g. the home page or a contact form.
The ID is the id number of whatever you're linking to, be it a photo, a gallery, a section or an article.
The syntax for the link tags is follows:
[link type="*section type*" id="xxxx"]Text to appear on page[/link]
e.g. [link type="section" id="12345"]Go back to the homepage[/link]
ID is the id of the photo, the gallery, the article or the section. The photo must be in a gallery. NB The tag will
link to images in hidden galleries and photos within them.
10.6 Linking to another web site
To link to another website you can also use the link tag as described in the previous section, but instead of
using a type attribute, use a "url" attribute with the address you want to link to, e.g.
[link url="www.photographymonthly.com"]Photography monthly[/link]
Clikpic will add the http:// to the front if you omit it.
NOTE It is possible to use the URL attribute for links on your own site but they won't work in preview
mode you should always use the type attribute described in the previous section.