Anchors


 * This article is for the anchors plugin. Anchors could also refer to Layouting

The anchors plugin allows the use of anchors, names for pages by which they can be referred to. This allows jumping to pages using a name instead of a number, which makes references to pages more robust (the page's number can change) and readable ("index" is better than "3", no?).

If an anchor cannot be resolved, it is checked if the given value is a number, and if so, it is treated as a page number.

There is also a small set of predefined, reserved anchors which cannot be overridden:
 * - jumps to the first page
 * - jumps to the last page
 * - jumps to the next page
 * - jumps to the previous page

= Plugin interaction = This plugin is used by the SWFAddress plugin to resolve deep links when loaded, i.e.  instead of   (anchor being the anchor name for the 13th page in the book, of course - 13th because the count starts at 0 in this case).

When loaded, this plugin registers a protocol with the Links plugin, named. It can be used in links to reference to anchors inside the book, i.e. to link to a specific page. Due to the way anchors are resolved (see above) it is also possible to use page numbers with this protocol.

= Attributes =

Page
= Examples =