System Link Macro

Links to a resource on a server.

Categories
Tags
  • Remote References
  • checking
Extension
Since
1.0

The System Link Macro allows to render a link to a resource on a remote server. The system is identified via Confluence shortcuts or space properties.

Properties

Label

The label for the link. Defaults to the name of the file - and if not given - the identifier of the system.

The value may contains property placeholders.

Tooltip

The tooltip to render with the like. May contain placeholders.

System Identifier

Identifies the connection information via Confluence shortcuts or space properties.

The system identifier is checked at three locations

The search for the system connection information is conducted as follows. Use the URI discovered first to connect to the server.

  1. Check for a space property url-
  2. Check for a space property
    Only available with projectdoc Toolbox version 1.11 and up!
  3. Check for a space property shortcut-id-.
    Lookup the connection information from the shortcut links with the value retrieved from the space property.
  4. Check the shortcut links for a value .
  5. Check application navigator for a value .

If no value is specified at any of the locations above, the macro renders an error message like this:

In this example for a system macro the referenced, but undefined system, is called test-repo.

The system identifier is added as CSS class to the link element.

System Type

Identifies the type of system referenced.

If no system identifier is specified, the system type is used as default. If no predefined system type is applicable, use generic.

The system type is added as CSS class to the link element.

Since version 1.0.

File

The file on the server  to link to.

The value may contains property placeholders.

Control with the Check Resource parameter, how the macro should signal a missing resource.

Delimiter

The delimiter to check in case the file is appended. If the delimiter is neither the last character of the system URL nor the first character of the file then this delimiter is inserted between the system URL and file name.

The delimiter is required to be one character. If more characters are specified, for instance none, then no delimiter will be inserted.

If no value is specified, the default delimiter is '/'.

Apply Space Properties

If checked the properties defined by the space of the document this macro is part of are applied as defaults.

Render Full URL

If checked and no label specified the URL is rendered in full.

Check Resource

If checked, the resource the URL points to is checked for existence.

Dependent on whether the resource exists or not a CSS class is added.

CSS ClassStatus
projectdoc-resource-existsResource exists
projectdoc-resource-not-existsResource does not exist

Details

Autoconvert

To create the macro authors may simply paste the URI to the resource to the editor.

All is needed is a configuration of the resource repository base URI. For more information on this topic, please refer to Autoconvert Information System URIs.

Labels for the generated link may be determined correctly (i.e. will show the title of the page) even if the page needs authentication to be accessed. See Authentication for details.

Related macros

The following macros help with referencing resources on other information servers:

Enterprise Architect Image Link Macro
Renders an image generated from an Enterprise Architect diagram, transcluded from a server.
HTML Snippet Macro
Transclude HTML content from a remote server.
Javadoc Link Macro
Links API documentation pages for Java elements.
Nexus Link Macro
Renders a link to an artifact stored on a Nexus server.
System Image Link Macro
Renders an image transcluded from a remote server.
System Transclusion Macro
Transclude content from a resource from a remote system.
Text Snippet Macro
Transclude text content from a remote server.

Resources

Confluence as the Information Hub
Tools from the projectdoc Toolbox to import from and export to other information systems.