Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nicwise
Created June 28, 2011 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicwise/1051394 to your computer and use it in GitHub Desktop.
Save nicwise/1051394 to your computer and use it in GitHub Desktop.
using umbraco.BusinessLogic;
using umbraco.cms.businesslogic;
using umbraco.cms.businesslogic.web;
using umbraco.cms.businesslogic.media;
using umbraco;
namespace UmbracoDefaultSorting
{
public class TestAppBase : umbraco.BusinessLogic.ApplicationBase
{
public TestAppBase()
{
UmbracoDefault.BeforeRequestInit += BeforeRequest;
}
public void BeforeRequest(object sender, RequestInitEventArgs e)
{
UmbracoDefault uBase = sender as UmbracoDefault;
e.Context.Response.Write("hello there " + e.Page.Template);
uBase.MasterPageFile = template.GetMasterPageName(1047);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment