Documentation
This
TopicFunction renders the header of a
ControlledTopic.
Parameters
- OBJECT the topic to render the info block for
Implementation
%STARTINCLUDE%%QMSTATE{
ignoreerror="on"
topic="%OBJECT{default=""}%"
workflow="%FORMFIELD{"Workflow" topic="%OBJECT{default=""}%"}%"
}%%STOPINCLUDE%
Test
ControlledTestTopic
<div class="clearfix %IF{
"'%WORKFLOWSTATE{"ControlledTestTopic" rev=""}%'='approved'"
then="foswikiSuccessMessage"
else="%IF{
"'%WORKFLOWSTATE{"ControlledTestTopic" rev=""}%'='rejected'"
then="foswikiErrorMessage"
else="foswikiWarningMessage"
}%"
}%">
%TRANSLATE{"%WORKFLOWSTATEMESSAGE{"ControlledTestTopic" rev=""}%"}%
| Current State:
| %TRANSLATE{"%WORKFLOWSTATE{"ControlledTestTopic"rev=""}%"}% |
| Action: |
%WORKFLOWTRANSITION{"ControlledTestTopic"}% |