I am setting up a new EPiServer CMS 7.5 wegsite. Using Visual Studio 2013 and MVC 5.I based the structure on the Alloy MVC Templates.
The homepage works fine if you visit it normally, but in CMS - Edit mode my page does not get rendered and when trying to preview the page the message 'Preview is not available for this page' is shown.
Any ideas what the problem can be?
To connect a Page Type to a template (in MVC you use a Controller) you can do it the simple way: let your Controller inherit EPiServer's Controller base class EPiServer.Web.Mvc.PageController<T> where T is your Page Type and must inherit PageData.
If you need to set specific tags or similar, you also decorate your Controller class with the TemplateDescriptor attribute.
The Controllers and the Page Types inherrit the right base classes. But still in CMS Edit mode nothing happens when you select a page.
Maybe I've got some configuration errors or something, but I have no clue where to start looking.
Found the problem, seems Glimpse was getting in the way...Uninstalled the package and everything seems to work again.
Ok, if you go to that Page Type in Admin mode and click Settings, is the correct MVC Template selected?
Yes the correct template is selected
Ah, sorry I didn't see your reply that you found the solution yourself :)
Mark, Glimpse is able to skip some of the stuff. I just re-created your environment and Preview is available. Any more details on your case maybe can help me to create issue for the Glimpse?!