Versions Compared

Key

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

...

Section
titleTemplates

To control the parameters with the context, the macro is required to provide a unique identifier.

The feature must be activated. Otherwise the context is not taken into account.


Section
titleSet Property to override Override Parameter

The parameter's name can be quickly fetched with the inspect context menu item provided by your browser.

Use the part after the prefix "macro-param-", such as "select" in the example above.

The name of the parameters that are actually supported are documented with the macro. For the Display Table Macro they are listed with the section Remote Controlled Documents.

Construct the name of the property to override the parameter value like this:

Code Block
languagetext
<Macro Identifier> + ':' + <Parameter Name>

For the example above this would read:

Code Block
languagetext
myUniqueId:select


...

Section
titleExample

In this example we use the Display Table Macro to list documents that describe doctypes.

Steps


Section
titleBasic Configuration


Macro editor showing the Display Table Macro querying for doctypes, showing name and short descriptionImage Modified

The macro editor shows the Display Table Macro querying for documents of document type 'doctype'. The table columns show the name and the short description for each hit.


Section
titleContext Awareness

To make the macro context aware, we provide an identifier and activate the Context controlled checkbox.

Image Modified


Section
titleControlled by Property

Now add the property to the document that contains the macro.

Image Modified


Section
titleResult

The table will now be rendered with columns Name, ID, Set, and Short Description.

Image Modified




Section
titleSubordinate Topics
Display Table
doctypetopic
render-no-hits-as-blanktrue
render-modedefinition
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name

...