If you would use a Message/Alert at the frontend you can use (like the docs) this:
JFactory::getApplication()->enqueueMessage('Your Message', 'type');
Where type can be one of
'warning' - yellow
'notice' - blue
'error' - red
'message' (or empty) - green
See: http://docs.joomla.org/Display_error_messages_and_notices
If you use 'message', 'notice' or 'warning' the box is allways yellow only 'error' (red) works good here.
Example here:
https://github.com/Buddhima/joomla-cms/blob/config_modules/components/com_config/controller/modules/save.php#L90
Here the message for this code:
Thanks.
PS: Joomla Code looks down for me so i will add a JC Tracker if it is up.
The doc page is true for the backend where Isis does an override for the messages where it maps the types to bootstrap classes. See: https://github.com/joomla/joomla-cms/blob/staging/administrator/templates/isis/html/message.php#L16
In frontend it depends on the template how it will show. We could do the same override for Protostar, but it would not change the colors for other templates.
We probably should do the same for Protostar but agree it's down to the template's overriden specification (which we should move to JLayouts probably whistles)
Title |
|
||||||
Labels |
Removed:
?
|
Category | ⇒ | Templates (site) |
Status | New | ⇒ | Pending |
Hey guys,
What's the status on this one?
closing as it is template related. Thanks for the update @nicksavov
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-16 12:25:09 |
Labels |
Added:
?
|
Joomla Code Tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33448&start=0
You may blame the J!Tracker Application for transmitting this comment.