Versions Compared

Key

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

...

Section
titleBody

The body of the macro contains a table with table headers in the first row.

One column contains a link to the document, all other columns specify property names or templates with property names.

Version Box
since4.5

Since version 4.5 templates are supported.

Example with Templates

To reference a property from a template use ${...} (curly brackets). In case a link should be rendered to the document containing the property use $[...] (square brackets). Any other text (like " with " or " and " in the example) is rendered verbatim.

Code Block
languagetext
titleTemplate Example with Document Link
#T{$[Title] / ${Iteration}}

Note that Deep Links are supported. Both forms ( and ->) are supported.

Code Block
languagetext
titleTemplate Example
#SD{${Short Description} with ${Subject} and ${Ref→Tags}}



Version Box
since6.2

Since version 6.2 the body not only allows rows with data cells for structuring, but also accepts table header cells.

Also any formatting in the identifying column is preserved. This allows add indents to create hierarchy information.

The following example shows a single separator line that takes all table columns and some arrows to mimic indenting.

Image Added

The macro will (with the table heading removed) render like this:

Image Added



Section
titleDetails


Section
level2
titleExample

The following example shows a small table that renders books with short descriptions and also adds an additional comment column.

Content Marker
idtour-macro-in-editor

 


Version Box

Since version 2.4 the macro renders an error box if the body does not contain a table.


 The result will add the short descriptions of the referenced books to the second column.

Content Marker
idtour-macro-in-view

 



Section
titleTemplate Support

Since version 1.17 of the projectdoc Toolbox the value columns support templates.

A template may reference properties with ${} and $[] (the latter generating a link to the document). If there is a non-empty value in a table cell, this value is rendered (and not the property value as this has been the case prior to version 1.17).

Example Box

This example shows the usage of a template in the second table row.



...