Created
August 25, 2013 07:58
-
-
Save sniffdk/6332568 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class SearchTable : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) | |
{ | |
base.ApplicationStarted(umbracoApplication, applicationContext); | |
Umbraco.Core.Services.ContentService.Published += (sender, args) => | |
{ | |
foreach (var content in args.PublishedEntities) | |
{ | |
var helper = new UmbracoHelper(UmbracoContext.Current); | |
var publishedContent = helper.TypedContent(content.Id); | |
var strUrl = publishedContent.Url; | |
} | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment