Status and System Messaging

The system_msg block is reserved for displaying messages to the user regarding the current state of the application or the results from an operation. They are completely optional.

The HTML for a message is generated for you when you use the <mtapp:statusmsg> template tag. The style of the message (success vs error) is set using the class argument on the tag, and the message itself is defined by the contents of the tag. For example:

<mt:setvarblock name="system_msg">
    <mt:if name="saved_deleted">
        <mtapp:statusmsg
            id="saved_deleted"
            class="success">The selected events were deleted.
        </mtapp:statusmsg>
    </mt:if>
</mt:setvarblock>

Classes

To change the style of a message use one of the following classes:

  • success
  • alert
  • info

Info Message

Success Message

Warning Message

This page was last updated on 2008-10-14, 19:21.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.