Creating Generated Links

Cosmo Create allows you to create two different types of links: standard and generated. A generated link is one in which a command is used to generate the link, rather than typing in a URL directly. For example, if you have a command that generates secure links to commerce servers, use the Cosmo Create generated link utility.

To create a generated link:

  1. Select the text you want to link.

  2. Click the Generated Link radio button. Notice that the Link Generation Command text field appears above the Link To text field.

  3. In the Link Generation Command text field, enter the name of the command to be used to generate the link.

  4. Click Apply. The command is executed and its output becomes the link attached to the selected text.

In addition to creating the generated link, Cosmo Create also attaches the Link Generation Command to the link with the SGI_URL_CMD attribute. For example, if you used program smith to create a generated link to www.sgi.com, your HTML would look like this:

<A HREF="http://www.sgi.com/[smith output]" SGI_URL_CMD="smith">

Browsers will ignore this attribute, but if you don't want it attached when you create your generated links, you can turn off this by deselecting the "Write SGI-specific HTML attributes" in the General Preferences panel (choose File > Preferences). It is not recommended that you do this, but instead use the packager to strip all Silicon Graphics-specific attributes.

For further information...

See the Link Dialog reference card for additional details.