I read this http://our.umbraco.org/documentation/Reference/Mvc/forms , but I don't understand if is I need VS. Is it possibile to build with Umbraco backoffice editor? Can I use Razor form ( not MVC )? I need to save data into a database and send email.
I think for MVC you'll need Visual Studio, yes. With VS running your should be able to create the SurfaceControllers you need for the form(s)
However, if you run Umbraco with webforms, you should be able to create the form within a Razor file, directly in Umbraco by going to the developer section, create a new Razor file under "Scripting files" and you're good to go :-)
The site is near RTM fase and the last step is only this form -.). I build the site in a few days ( I know Umbraco well ), but I don't understand how setting up a VS project for U6.x MVC ( where is a guide ? ) . The site is alread on the server and then I would to download the site + database on my devel server ( and waste some time ). So for the next project, I'll start from Vs. Is right? Sometime the are problem to upload the site on production server like links lost, images and so.
Is there a speed up method without to use Vs for building a small form?
With Umbraco Webform, I used razor form with inline code...
This video section goes through setting up a form in MVC aswell.
For the form, I think you should be able to create a simple form without using a SurfaceController by simply creating a partial view in Umbraco. I haven't used Umbraco as MVC much myself, so this is quite a shot in the dark. However, to my understanding, the partial view is much like a regular Razor file in Umbraco running webforms. Correct me if I'm wrong here ;-)
thank you for your reply. Yes, into partial view you can use Razor code like macros. I try to build a simple form with legacy post and see what happen... -:)
MVC model and view in U6.1.x
Hi, I need to create a form in a U6.1.x
I read this http://our.umbraco.org/documentation/Reference/Mvc/forms , but I don't understand if is I need VS. Is it possibile to build with Umbraco backoffice editor? Can I use Razor form ( not MVC )? I need to save data into a database and send email.
Hi Biagio,
I think for MVC you'll need Visual Studio, yes. With VS running your should be able to create the SurfaceControllers you need for the form(s)
However, if you run Umbraco with webforms, you should be able to create the form within a Razor file, directly in Umbraco by going to the developer section, create a new Razor file under "Scripting files" and you're good to go :-)
Does this answer your question?
All the best,
Bo
Hi,
The site is near RTM fase and the last step is only this form -.). I build the site in a few days ( I know Umbraco well ), but I don't understand how setting up a VS project for U6.x MVC ( where is a guide ? ) . The site is alread on the server and then I would to download the site + database on my devel server ( and waste some time ). So for the next project, I'll start from Vs. Is right? Sometime the are problem to upload the site on production server like links lost, images and so.
Is there a speed up method without to use Vs for building a small form?
With Umbraco Webform, I used razor form with inline code...
Hi Biagio,
There's a great video on umbraco.tv: http://umbraco.tv/videos/developer/fundamentals/surface-controllers/introduction/ This explains how to set up the project in Visual Studio using NuGet etc. :-)
This video section goes through setting up a form in MVC aswell.
For the form, I think you should be able to create a simple form without using a SurfaceController by simply creating a partial view in Umbraco. I haven't used Umbraco as MVC much myself, so this is quite a shot in the dark. However, to my understanding, the partial view is much like a regular Razor file in Umbraco running webforms. Correct me if I'm wrong here ;-)
/ Bo
Hi Mortensen,
thank you for your reply. Yes, into partial view you can use Razor code like macros. I try to build a simple form with legacy post and see what happen... -:)
Hello,
These posts might also help:
http://24days.in/umbraco/2012/creating-a-login-form-with-umbraco-mvc-surfacecontroller/
http://creativewebspecialist.co.uk/2013/07/22/umbraco-mvc-what-on-earth-is-a-surface-controller/
Jeroen
Hi,
Do I need Visual Studio or I can made this files in notes and put in in appdata ( dynamic compiling )?
You should be able to add them to the app_code folder. Perhaps that CWS Start is also doing that, but I haven't tried it yet.
Jeroen
is working on a reply...