Professional Documents
Culture Documents
Once created, this template and all pages based on it can use both the old WebFo
rms widgets, as well as custom MVC widgets.
In order for this to work, the Sitefinity engine creates a page object, but also
routes to all MVC controllers that you have on the page and inserts their marku
p into the output. This works in exactly the same way that ASP.NET MVC does, so
there are no hacks or workarounds
you can fully expect your controllers to behave
like they would normally.
Which mode should I use?
The mode used depends on your development process as well as the functionality y
ou want to implement.
If you want clear markup, a lot of client code and are willing to sacrifice the
ViewState and postback model, use Pure mode.
If you want to use the built-in Sitefinity widgets, together with custom MVC con
trollers on the same page, you have to use the hybrid mode.
If you are porting an existing MVC app into sitefinity, and want precise control
over your URLs, you may want to use the classic mode.
Those are not the only scenarios and there are always tradeoffs to be made. We a
re providing options for you to use the best of both worlds, but which one you c
hoose is up to you. We cannot confidently recommend the best practice without kn
owing your project functionality and objectives.