Working with ASP.NET Master Pages


#1

I have a site I just moved from Pagelime to here but it uses master pages (asp.net) for a lot of the code (navigation, HTML/BODY tags, etc…). I can’t find a way to reference the page via SurrealCMS and when I go into editing a given page it tells me HTML is missing (which of course it is from the file calling the master page). Any ideas?


#2

If you’re enabling the page from a views directory, that could be why you’re seeing the partial page. Surreal maps URLs to folders:

https://example.com/path/to/file.html ==> {homeFolder}/path/to/file.html

So if you’ve enable a partial instead of the main page, that’s likely the cause. It’s also worth mentioning that Surreal typically doesn’t work well with MVC-structured sites for the same reason (not sure if you’re using that or not).