4W WebMerge Tag Reference

WM-LinkIndexFirst

Syntax
[WM-LinkIndexFirst] Link Label[/WM-LinkIndexFirst]

Example
[WM-LinkIndexFirst]Go to First Category[/WM-LinkIndexFirst]

Description
This tag is only used in index templates.

The HTML between [WM-LinkIndexFirst] and [/WM-LinkIndexFirst] is replaced with a link to the first index page generated.

If the current index page being generated is the first one, the text between the opening and closing tags is not written to the generated page.

The WM-LinkIndexFirst tag provides a way to navigate among multiple index pages. For example, if you were publishing an employee directory you could have WebMerge create a new index whenever the first letter in the Last_Name field changes, and this tag would let you move to the list of names starting with "A".

All navigation tags allow you to include attributes in the tag which will be included in the generated link. For example, to specify a target in a navigation tag you'd write:

   [WM-LinkIndexFirst: target="_blank"]First Page[/WM-LinkIndexFirst]

...which would generate:

   <a href="index001.html" target="_blank">First Page</a>


Introduced in version 2.0.
Version 2.2 introduced support for link attributes.