Use text elements

Text elements are wiki elements that represent a custom piece of text that can be defined in one page of a wiki and used in another. For example, this allows you to define the page title in each content page, which is then used in the layout page to display the page title at the top of the page.

Text elements have a name and a value. You define a text element as follows:

[element set name="name of text element"]value text element[/element].

The definition can be done anywhere in the source code of a page. Once the text element has been defined, you can use it by

[element get name="name of the text element"]

into the source code of a page. In the web view of this page, the text element is evaluated and replaced with its value.

Text elements defined in the layout page can be used in any content page of the wiki, e.g. as an abbreviation for a frequently used text passage that may still be elaborately formatted. Text elements defined in a content page can only be used in this same content page and layout page. If you define text elements with the same name in both a content page and the layout page, then the definition in the content page takes precedence over the definition in the layout page. So you can define default text elements in the layout page, which you may or may not override in the content pages. See the source code for the start page and layout page demonstrations to learn more about using text elements.

There are also some predefined text elements that you can use:

title: the BSCW name of the current object;

description: the description of the current object from BSCW;

author: the name of the creator of the current object;

meta:bscw:keywords, meta:bscw:category: The tags and category assigned to the current object; other metadata is also available this way by appending the internal identifiers of the metadata attributes to meta:. The identifiers used in a metadata profile are obtained by appending

      You can call up the specificationAktionthe context menu of the metadata profile •    (see also 4.9.1 Metadata profiles).

For example adds

[element get name="title"]

the name of the current page and

[element get name="meta:bscw:description"]

the description of the current page. In addition, you can use

[element get name="foldermeta:bscw:description"]

insert the description of the folder where the page is located and confirm with

[element get name="topmostfoldermeta:bscw:description"]

the description of the highest-ranking wiki where the page is located.

Furthermore, it is possible to access metadata at an unspecified location in the access path of the displayed page. This way

[element get name="searchmeta:bscw:description"]

the metadata bscw:description, i.e. the description, from the lowest object along the access path to which the metadata bscw:description could be assigned according to configuration. So if there is no description stored there, you get an empty output.