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
This page is part of the Building Movable Type Applications
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.