We have partial header and footer for our umbraco 7 project. Now it needs to be integrated with another pure .net mvc project (the whole web application would become 50% umbraco and 50% .net mvc). We don't want to duplicate another header and footer for .net mvc project. So we would like to know is it any way we can do to let the .net mvc project use the partial views in umbraco (may be using web api)? Ajax will be the last option.
Thanks.
Umbraco partials are usual mvc partials, you can use them as you want.
Only problem with @inherits attribute.
You have to use the same model for both views.
Share partial view with other non-umbraco project
Hi,
We have partial header and footer for our umbraco 7 project. Now it needs to be integrated with another pure .net mvc project (the whole web application would become 50% umbraco and 50% .net mvc). We don't want to duplicate another header and footer for .net mvc project. So we would like to know is it any way we can do to let the .net mvc project use the partial views in umbraco (may be using web api)? Ajax will be the last option. Thanks.
Cheers,
Gary
Hi Gary,
Umbraco partials are usual mvc partials, you can use them as you want. Only problem with @inherits attribute. You have to use the same model for both views.
Thanks, Alex
is working on a reply...