Allowing for SESSION messages to have render position (bug #1248318)
- the add_ok_msg, add_error_msg, and add_info_msg functions now take a
'placement' parameter. When set it will only display the message at that
location. Defaults to 'messages', the current place they are displayed.
eg:
$SESSION->add_ok_msg('hello world!', false, 'loginbox');
- to get the message to display at new location one needs to add to
the relevant template
{dynamic}{insert_messages placement=[placement]}{/dynamic}
where [placement] = the placement parameter you are after
eg:
{dynamic}{insert_messages placement='loginbox'}{/dynamic}
Change-Id: I202d7e3e8d86ca1c74c4488f30e6c25686ac32e0
Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
Showing
Please register or sign in to comment