Add method to reset PublishedContentRequest template

This commit is contained in:
Stephan
2014-03-04 13:01:48 +01:00
parent 83736bec01
commit 5dbc72897a

View File

@@ -312,6 +312,16 @@ namespace Umbraco.Web.Routing
TemplateModel = template;
}
/// <summary>
/// Resets the template.
/// </summary>
/// <remarks>The <c>RenderingEngine</c> becomes unknown.</remarks>
public void ResetTemplate()
{
EnsureWriteable();
TemplateModel = null;
}
/// <summary>
/// Gets a value indicating whether the content request has a template.
/// </summary>