Skip to content
  • Robert Lyon's avatar
    Allowing for SESSION messages to have render position (bug #1248318) · c1be6b9d
    Robert Lyon authored
    
    
    - 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: default avatarRobert Lyon <robertl@catalyst.net.nz>
    c1be6b9d