Created
June 28, 2011 15:28
-
-
Save nicwise/1051394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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