What is the convention when creating MVC admin pages in sitecore?
What routing is used, where are controllers and views placed?
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this communityWhat is the convention when creating MVC admin pages in sitecore?
What routing is used, where are controllers and views placed?
Usually, you can create an item (or a whole structure) in your content tree for admin pages as well. You get:
Unless you have very unique requirements, I don't think you should separate these pages from Sitecore's other aspects.
You can place .cshtml files in your site's /sitecore folder or subfolders and browse to them directly by filename, e.g. http://mysite.com/sitecore/my-folder/my-file.cshtml. I haven't seen this documented anywhere, but it works.
I don't know how you'd do it with an actual MVC controller class.