If i have say 2 MVC forms on my umbraco page and (using the demo example) one is a newsletter... when i popst back and then render the success view, i also get the PartialVIew for the other forms GET method (which is what it should do)... but what woud be the best way to go to a standalone success page?
The issue is that you are within the template in umbraco (ive added the maco to the template rather than through the UI) so you are always going to get the 2 forms unless you go to another page.
But whats the best way to redirect to another page and keep the macros re-usable (i.e. not hard coding the redirects etc..)
Not lucky enough to be at CG12 unfortunately but will look forward to taking the new version for a spin.
Dont think the form token would get me to what i want as detailed above (to redirect to another dedicated content page/template alias in umbraco) but will wait to see what you have come up with. :)
I think the best way would to go to an umbraco "succes" page, you would not have your own formmodel though...
Anyway, not sure if I go on with this as there was a package at the package competition where Shandem showed a proof of concept for actualy enabling MVC for the front-end part umbraco.
Multiple forms and postbacks
Hi,
If i have say 2 MVC forms on my umbraco page and (using the demo example) one is a newsletter... when i popst back and then render the success view, i also get the PartialVIew for the other forms GET method (which is what it should do)... but what woud be the best way to go to a standalone success page?
The issue is that you are within the template in umbraco (ive added the maco to the template rather than through the UI) so you are always going to get the 2 forms unless you go to another page.
But whats the best way to redirect to another page and keep the macros re-usable (i.e. not hard coding the redirects etc..)
Thanks
Damian
Hi,
I think it's got to be something with the formtoken stuff.
I am still at codegarden in de hackroom. so pop by if you are there.
I have a new version for the mvcbridge in progress and it's working rioght now on my laptop.
You will not have to inherit from the MvcBridgeController anymore, so that should be easier.
I'll keep you posted.
Cheers
Not lucky enough to be at CG12 unfortunately but will look forward to taking the new version for a spin.
Dont think the form token would get me to what i want as detailed above (to redirect to another dedicated content page/template alias in umbraco) but will wait to see what you have come up with. :)
Cheers
Damian
I think the best way would to go to an umbraco "succes" page, you would not have your own formmodel though...
Anyway, not sure if I go on with this as there was a package at the package competition where Shandem showed a proof of concept for actualy enabling MVC for the front-end part umbraco.
You can find the source and package at https://bitbucket.org/Shandem/umbramvco
Be sure to read the readme...
Cheers.
is working on a reply...