The relative links object is used to get relative path references to files from within templates. For example, the HomeDir property allows the relative path to the home directory to be inserted - obviously this changes depending on the sub-folder level of the document being used, so can't be hard coded.
| Property | Explanation | Example
|
|---|
| FromHome | Inserts the absolute path of this file from the home directory. It has little value in normal situations, however the Hayes Manor website uses it to implement a 'Show Navbar' button. When entering the site from anywhere other than the main index page the navbar does not show. Clicking the 'Show Navbar' button loads a frameset and passes it this value, to allow it to display the navigation bar and load the current page into it.
|
| HomeDir | Inserts the relative path to the home directory.
| <IMG SRC="%%Rel.HomeDir%%/res/picture.gif">
Inserts a picture in the 'res' subfolder of the home directory (the default for template resources).
|
| IndexHomeDir | Inserts the relative path to the home directory from the parent object. It is used in index listings where HomeDir doesn't work properly.
|
| Last | The path to the previous file in the browse sequence - used for the 'Last' button on pages which can be browsed one after another.
| <A HREF="%%Rel.Last%%">Previous Page</A>
|
| Next | The path to the next file in the browse sequence - used for the 'Next' button on pages which can be browsed one after another.
| <A HREF="%%Rel.Next%%">Next Page</A>
Inserts a link to the next page.
|
| Path | The path of this file from the parent index page - used in index listings to provide a link to the page.
| <A HREF="%%Rel.Path%%">%%Document.Title%%</A>
Links to this page in an index list.
|