Page 1 of 1

notifications for users

PostPosted: Thu Aug 05, 2010 9:53 am
by amrcode1
Greetings to all

I have a situation with my users
When entering data in many tables
messages sent to them, providing some guidelines
on what steps to follow.

Added to that are the messages generated by Xataface
the question is that some times confused user
because they can not differentiate an easy way message
an error message with instructions for their work.

It would be ideal if there is any way to handle this
let's just changing the color of the message when
our guidelines and leave the current inventory of orange xata messages.

If necessary edit php code is fine, but I have no idea where to, if not touch the code of xata is better, maybe a delegate class
Or something like that...
Thanks
PD: Google help me in the transale work... ;)

Re: notifications for users

PostPosted: Wed Aug 11, 2010 10:14 am
by shannah
I see your point. Currently all of the status messages in Xataface use the same style (orange background), so any message generated using the --msg=... flag will be displayed the same. You do have many ways to insert snippets into a Xataface application. You could use blocks / slots to add your own messages using whatever style you want if you have very important error messages. (I believe there is a section in the getting started guide on blocks and slots).

e.g.

Code: Select all
function block__my_block_name(){
    echo '<div class="my-error">This is an important error message</div>';
}

Re: notifications for users

PostPosted: Mon Aug 16, 2010 8:59 am
by amrcode1
Hi, thanks for your answer. You are right, this will be useful to my messages.

this avoids the appearance of the message that I can send users, but leave pending the control of the appearance (ie color) xataface messages, so far no difference visually xataface notifications "successfully saved records" "An error occurred when trying to delete the record."

I was thinking of a way to do it with jquery, looking for the div element with class "portalMessage" and see if it contains the words "Error" or something like that, then do the rest .... I think I'll try ... Thanks.....