Hello, I've just started working with Umbraco, so I have a lot of questions. Right now I'm trying to use different controllers for partial views, is this possible? Thanks in advance!
If you are looking to use Partial Views and wish to be calling actions on controllers in order to configure them you'll probably be wanting to look into Surface Controllers. These are a particular type of controller that exist within Umbraco that are designed for exactly there.
Different controllers for partial views
Hello, I've just started working with Umbraco, so I have a lot of questions. Right now I'm trying to use different controllers for partial views, is this possible? Thanks in advance!
Hi Andres,
If you are looking to use Partial Views and wish to be calling actions on controllers in order to configure them you'll probably be wanting to look into Surface Controllers. These are a particular type of controller that exist within Umbraco that are designed for exactly there.
https://our.umbraco.com/documentation/reference/routing/surface-controllers
If you are looking to add something like a custom contact form then this tutorial here is a great example as well:
https://codeshare.co.uk/blog/how-to-create-a-contact-form-in-umbraco-using-mvc-and-c/
Cheers
Nik
is working on a reply...