Customizing Comments Form - need errors in validation summary

Topics: Customizing Orchard
Jun 9, 2011 at 6:25 PM

Hi Everyone!

I am a web-forms developer and I'm trying to learn MVC and Orchard. I want to customize Comments form.

It uses notifier to show validation errors on top of the parent page. And I want to see these errors in validation summary before the form.

Comments form uses CommentController to process POST requests.

CommentController uses redirect to return to parent page:

return this.RedirectLocal(returnUrl, "~/");

If I don't do a redirect I have "/Comments/Comment/Create" url on response.

Is there a way to resolve this and show errors in validation summary? Thanks.