next up previous contents index
Next: Autolinking Syntax Up: AUTOLINKS Previous: AUTOLINKS

How To Setup An Autolink

Autolinking is set up by adding information in a GPD describing the particular linking for an item tag (concept) when new items are created of that type. For instance, if an autolink is defined for `paragraph' in the `text' GPD, then each new paragraph inserted within a text view is automatically assigned the specified link at creation. In this way components can inherit information from the context in which they are created.

Let us say that new paragraphs in a text should inherit a link from the root of the text. The link to inherit might be the link TEXTROOT:Inherit:5 from the root of the text, and it should be called TEXT:Given:1 in newly created paragraphs. Then you would write the following AUTOLINK directive as a value for `paragraph' in the AUTOLINKS section of the text GPD:

paragraph
TEXT Given = TEXTROOT Inherit 5

Another example is the `folder' GPD, which defines an autolink for `item', so that each new item is assigned a back-link to the folder in which it is created. See figure 7.27.

 


:  AUTOLINKS in `user' GPD



Martin Sjolin
Mon May 29 19:53:45 MET DST 1995