Path

ez.no / exponential / documentation / reference / template functions / gui / collaboration_simple_message_view


collaboration_simple_message_view

Summary

Displays a collaboration message.

Usage

{collaboration_simple_message_view 
sequence=$sequence
is_read=$boolean
item_link=$collaborationItemMessageLink
collaboration_message=$collaborationSimpleMessage 
[ view='view_mode'  [ parameter=$value [ ... ] ] ] }

Parameters

NameTypeDescriptionRequired
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.

Returns

A collaboration message.

Description

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:

  • element

Examples

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

Contents

Reference

Database diagram
Template operators
Template functions
    GUI
       attribute_edit_gui
       attribute_pdf_gui
       attribute_view_gui
       class_attribute_edit_gui
       collaboration_icon
       collaboration_participation_view
       collaboration_simple_message_view
       collaboration_view_gui
       content_pdf_gui
       content_version_view_gui
       content_view_gui
       event_edit_gui
       menu
       node_view_gui
       shop_account_view_gui
       tool_bar
    Miscellaneous
    Program flow
    Variables
Data fetching
Modules
XML tags


Created

06/02/2004
2:15:51 pm
by Balazs Halasy

Last updated

13/02/2004
5:11:47 pm
by Wenyue Yu

Authors

Balazs Halasy
Wenyue Yu



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.