Tag: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:
|-
|-
| $TOKEN
| $TOKEN
| Inserts the [[web token]] of the Project's [[Session]]
| Inserts the [[Web Token]] of the Project's [[Session]]
|}
|}


Line 34: Line 34:
|-
|-
| $STAKEHOLDER_ID
| $STAKEHOLDER_ID
| Inserts the [[ID]] of the [[stakeholder]] who owns the [[Panel]], if it has one. -1 if it has none.
| Inserts the [[ID]] of the user's [[Stakeholder]].
|-
|-
| $STAKEHOLDER
| $STAKEHOLDER
| Inserts the name of the [[stakeholder]] who owns the [[Panel]], if it has one. Empty text if it has none.
| Inserts the name of the user's [[Stakeholder]].
|}
|}



Revision as of 10:53, 5 August 2020

Text in Panels can contain special tags that are replaced by the Tygron Platform based on the Project's data, the Session's data, and the context of the Panel, such as the owner or related Items of the Panel. A tag can be placed anywhere in the text of a Panel, and when the content of that Panel is rendered for display to the user, the tag is replaced by the appropriate data. In other words, the tag specifies a specific kind of data, and that data is inserted into the Panel's text in the location of the tag.

General tags

Tag Effect
$PROJECT_NAME Inserts the name of the Project.
$TOKEN Inserts the Web Token of the Project's Session

Web tags

Tag Effect
$LIB_CUSTOM Inserts the name of the custom javascript library, part of the web interface configuration.

Contextual tags

Tag Effect
$NAME Inserts the name of the Panel.
$ID Inserts the ID of the Panel.
$STAKEHOLDER_ID Inserts the ID of the user's Stakeholder.
$STAKEHOLDER Inserts the name of the user's Stakeholder.

Attributes tags

Tag Effect
$ATTRIBUTE_ATTRIBUTENAME, where ATTRIBUTENAME is the name of the Attribute Inserts the values of Attributes stored in this Panel, which can change based on calculations of Indicators or other Panels.
$GLOBAL_GLOBALNAME, where GLOBALNAME is the name of the Global Inserts the values of Globals stored in the Project, which can change based on calculation of Indicators or other Panels.

Notes