> So my questions are: > > 1) Is there any other way to access the flash or session data from > a tag? > > 2) Is there a better way to send back form validation messages to a > Page? (*) > > There are two options I can think of here for question #2, and I don't think you need to worry about #1.
First, when validation fails, you could simply render the page as your output, using the special Radius tags you use to markup your form to output the validation errors. Second, you could use AJAX to post the comment. Then if it fails, you can send back various JS commands that display the validation errors. A third but potentially less desirable option is not to subclass Page like the Mailer extension does, but to modify the Page model directly. Alias-chain the process method and then check for your comment post, passing on to the original method if it wasn't a comment. For Redken, we did add sessions to SiteController; however, I would only do it if you are allowing visitor logins. It doesn't seem worth it to enable sessions just for flash messages. Sean _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
