If you set a simple "msg" field with no id, it will replace the entire
message output with that one message

[session msg "whatever"]

If I do

[session msg_1 "more"]

it will append that to the message array, or be available as a
specific message. Of course it will be overridden in [messages] if
there is a simple "msg" field in the form.

Cheers,
Dan

P.S. I do wonder if we want different styling for sub messages?  For
example, the main message may be in a nice message box. The sub
message might just be colored text near the input box. Having multiple
message boxes in the default skin look a bit unweildy. I'm thinking
perhaps class messageid as opposed to class message?

On Thu, Oct 8, 2009 at 5:11 AM, Hans <[email protected]> wrote:
>
>> Actually, [messages] will continue to display all messages, regardless
>> of id. Or the value of msg, which replaces all the other messages
>> generated by the system with a single message output.
>
> Okay, but if you have  a validation error and want to put an error
> message beside the input field, then you don't want to have the same
> message repeated  in the "general" message box in the page header. You
> may not want  a message there, or more likely, you want a general
> input error message there.
>
> For example:
> general message: "Some fields need to be filled"
> plus specific message beside 'name' field: "Enter your name here"
>
> The reason why a general message at the top may be good is, that page
> may be long, and when it redisplays with the input error messages one
> may not see the specific field and message beside it, since the page
> is not displayed scrolled down to that position.
>
> So some way to set msg when msg_one is set would be good.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to