Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Document Properties Marker
doctypemacro
overridefalse


Doctypemacrohide
NameWiki Link Macro 
Short DescriptionAllows to render a link to a wiki page. 
Parent
Parent Property
property-nameName
 
Audience
Name List
doctyperole
render-no-hits-as-blanktrue
render-list-as-comma-separated-valuestrue
namesDocumentation Architect, Template Author
 
Categories
Name List
doctypecategory
namesLink / Document
 
Tags
Tag List
namesLink, Link Resource, Create Page
 
Iteration
Iteration
valueproduction
hide
Sort Keyhide



Section
indextrue
show-titlefalse
titleDescription

Renders a link to a page in the wiki. It uses the delegate space or the search space for searching the page with the specified title.

This macro is usually relevant for template authors and documentation architects. It allows to reference the home page of a document type, without knowing exactly, where it is located.

Example Box
titleExample with 4 different Link Styles

All four link styles are automatically generated, dependent on the location or existence of the target page within the wiki.


...

Section
titleProperties


Section
level2
titleSpace Key

The key to the space the page is part of. If empty, the macro tries to find a page with the given page title on the delegate space.


Section
level2
titleDocument

The title of the document to link to.

Overrides the page parameter.


Section
level2
titleLabel

The label to render instead of the page name.

If neither the document or page parameter is set, the label is used as a the page title.


Section
level2
titleCSS Classes

The optional CSS classes to add to the link.

Section
level3
titleAutomatic Classes



Section
level2
titleSpace Closure

The space closure defines which spaces are to be considered for searching.

Per default the delegate spaces are used. This is what the is most often needed: the location where new documents are stored per default is the location this macro will link to.

If you have a space that references the latest version of a product space, you may want to link to information to be found in any space. In this case the space contains the latest version of a space in its search space. Using this link will ensure that the latest version is linked.


Section
titleRender No Docs Style

Signal no existing docs in this space visually.

Allows to suppress rendering the CSS style projectdoc-no-docs.

Since version 1.10.


Section
titleRender Space Style

Signal space reference visually.

Allows to suppress rendering the CSS style projectdoc-space-reference.

Since version 1.10.


Section
titleLink Render Control

Control how the link is rendered if the target document does not exist.

Values are

Definition List


create-linkRender a link to create a document (default)
emptyRender nothing
plain-textRender the link label.


Since version 1.10.


Section
level2
titleEmpty if not exists


Deprecated Box

Deprecated since version 1.10. Use Link Render Control 60883493 with a value of empty instead.

If checked, the link text will not be rendered, if the target page within the wiki does not exist.


Section
level2
titlePlain text if not exists


Deprecated Box

Deprecated since version 1.10. Use Link Render Control 60883493 with a value of plain-text instead.

If checked, the link text will be rendered as plain text, if the target page within the wiki does not exist.

If the option "Empty if not exists" is selected, the text will not shown. That is: this option is overridden by the empty text option.


Section
level2
titleBlueprint

The complete key of the page blueprint.

Info Box

A page blueprint key looks like this:

Code Block
languagetext
de.smartics.atlassian.confluence.smartics-projectdoc-confluence:projectdoc-blueprint-doctype-blank

This example refers to the Blank Document.

If omitted, the new page will be based on the empty page template.


Section
titleRequest Parameters

Request parameters allow to call a Remote Controlled Document (e.g. using the Display Table Macro).

The left side (value) of the parameter assignments will be URL encoded. The expected pattern is

Code Block
id-x:name1=value A, value B&id-y:$<name2>=[some value]


Version Box

Available since version 2.3.1.



Section
level2
titlePage

The name of the page to link to.

For template developers: This may be the key to the localized information. This is useful if you create blueprint projects with space blueprints.

The name may contains special placeholder values that will be replaced:

PlaceholderDescription
@parentPageTitleIf the page has a parent page, the placeholder is replace with that page's title.
@spaceKeyThe placeholder is replaced with the page's space key.
@spaceNameThe placeholder is replaced with the page's space name.
/Signals to link to the space homepage (since Version 1.8.0).

Placeholders referencing the current date or time are not supported.

Example Box

If template authors want to reference the parent page of a Section document instance, they use the following:

Code Block
<ac:structured-macro ac:name="projectdoc-link-wiki">
  <ac:parameter ac:name="page"><at:i18n at:key="my.page.name.i18n.key"/> - @parentPageTitle</ac:parameter>
</ac:structured-macro>




...

Section
titleReferences


Section
titleResources


Piwik Set Multiple Custom Variables


NameValue
Departmentprojectdoc
Categoryprojectdoc-macro
Typenavigate