notifications for users

A place for users and developers of the Xataface to discuss and receive support.

notifications for users

Postby amrcode1 » Thu Aug 05, 2010 9:53 am

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... ;)
amrcode1
 
Posts: 18
Joined: Thu Nov 12, 2009 11:09 am

Re: notifications for users

Postby shannah » Wed Aug 11, 2010 10:14 am

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>';
}
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: notifications for users

Postby amrcode1 » Mon Aug 16, 2010 8:59 am

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.....
amrcode1
 
Posts: 18
Joined: Thu Nov 12, 2009 11:09 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 29 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved