ez.no / exponential / documentation / reference / template functions / gui / collaboration_simple_message_view
{collaboration_simple_message_view
sequence=$sequence
is_read=$boolean
item_link=$collaborationItemMessageLink
collaboration_message=$collaborationSimpleMessage
[ view='view_mode' [ parameter=$value [ ... ] ] ] }
| Name | Type | Description | Required |
|---|---|---|---|
| collaboration_message | object | eZCollaborationSimpleMessage object. | Yes. |
| sequence | string | display sequence value | Yes. |
| is_read | boolean | Has the message been read? | Yes. |
| item_link | object | eZCollaborationItemMessageLink object. | Yes. |
| view | string | The view mode to use. | No. |
| other parameters | mixed | Parameters passed to the GUI template. | No. |
A collaboration message.
Shows a collaboration message. You must supply the sequence, is_read, item_link and collaboration_message parameters. The view parameter, specifying which view mode to use, is optional. Any other parameters are passed on as template variables.
The following view mode are defined in standard Exponential:
Show element view of all collaboration messages for collaboration ID 1.
{let messageLinkArray=fetch( 'collaboration', 'message_list', hash( 'item_id', 1 ) ) current_participant=fetch( 'collaboration', 'participant', hash( 'item_id', 1 ) ) } {section var=messageLink loop=$messageLinkArray sequence=array(bglight,bgdark)} {collaboration_simple_message_view view=element sequence=$messageLink.sequence is_read=$current_participant.last_read|gt($:item.modified) item_link=$messageLink collaboration_message=$messageLink.simple_message} {/section} {/let}
Comments