mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #14926
[Bug 1248318] [NEW] session messages to display in alternative places
Public bug reported:
Wanting certain messages that get added to $_SESSION['messages'] to
display in places other than the <div id="messages"></div> place at top
of page.
To handle this I am thinking that a 'placement' variable needs to be
added to message items. This way one could easily specify the place on
the screen where the message is to appear.
So that the code to add a message to an alternative place, for example
under the login auth box, would be:
$SESSION->add_ok_msg($mymessage, false, 'loginbox');
and in the login.tpl template have
{dynamic}{insert_messages placement='loginbox'}{/dynamic}
for all the session messages with out placement specification - they would get displayed in the default place.
** Affects: mahara
Importance: Wishlist
Assignee: Robert Lyon (robertl-9)
Status: In Progress
** Tags: messaging
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1248318
Title:
session messages to display in alternative places
Status in Mahara ePortfolio:
In Progress
Bug description:
Wanting certain messages that get added to $_SESSION['messages'] to
display in places other than the <div id="messages"></div> place at
top of page.
To handle this I am thinking that a 'placement' variable needs to be
added to message items. This way one could easily specify the place on
the screen where the message is to appear.
So that the code to add a message to an alternative place, for example
under the login auth box, would be:
$SESSION->add_ok_msg($mymessage, false, 'loginbox');
and in the login.tpl template have
{dynamic}{insert_messages placement='loginbox'}{/dynamic}
for all the session messages with out placement specification - they would get displayed in the default place.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1248318/+subscriptions
Follow ups
-
[Bug 1248318] Re: Allow $SESSION messages to be displayed in alternative places
From: Robert Lyon, 2014-04-22
-
[Bug 1248318] Re: Allow $SESSION messages to be displayed in alternative places
From: Kristina Hoeppner, 2013-12-22
-
[Bug 1248318] A change has been merged
From: Mahara Bot, 2013-11-14
-
[Bug 1248318] A change has been merged
From: Mahara Bot, 2013-11-08
-
[Bug 1248318] Re: Allow $SESSION messages to be displayed in alternative places
From: Aaron Wells, 2013-11-08
-
[Bug 1248318] Re: session messages to display in alternative places
From: Aaron Wells, 2013-11-07
-
[Bug 1248318] A change has been merged
From: Mahara Bot, 2013-11-07
-
[Bug 1248318] Re: session messages to display in alternative places
From: Son Nguyen, 2013-11-06
-
[Bug 1248318] A change has been merged
From: Mahara Bot, 2013-11-06
-
[Bug 1248318] Re: session messages to display in alternative places
From: Robert Lyon, 2013-11-05
-
[Bug 1248318] [NEW] session messages to display in alternative places
From: Robert Lyon, 2013-11-05
References