routing, fix "no content" splash, fix "no template" handling, fix redirects

This commit is contained in:
Stephan
2012-09-28 07:04:33 -02:00
parent d8c2a71531
commit b0e336e01f
5 changed files with 137 additions and 85 deletions

View File

@@ -88,6 +88,13 @@ namespace Umbraco.Web
return ConvertToDocument(GetXml(umbracoContext).SelectSingleNode(xpath));
}
public bool HasContent(UmbracoContext umbracoContext)
{
const string xpath = "/root/*[@isDoc]";
var node = GetXml(umbracoContext).SelectSingleNode(xpath);
return node != null;
}
XmlDocument GetXml(UmbracoContext umbracoContext)
{
if (umbracoContext == null) throw new ArgumentNullException("umbracoContext");