4W WebMerge Tag Reference

WM-LinkFirst

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

Example
[WM-LinkFirst]Go to First Record[/WM-LinkFirst]

Description

This tag is used only in detail templates.

The HTML between [WM-LinkFirst] and [/WM-LinkFirst] is replaced with a link to the page generated from the first record in the export file.

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

Used in conjunction with WM-LinkPrevious, WM-LinkNext, and WM-LinkLast you can easily build page-to-page navigation into your detail pages.

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-LinkFirst: target="_blank"]First Page[/WM-LinkFirst]

...which would generate:

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


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