Skip to content

Instantly share code, notes, and snippets.

@sniffdk
Created August 25, 2013 07:58
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 sniffdk/6332568 to your computer and use it in GitHub Desktop.
Save sniffdk/6332568 to your computer and use it in GitHub Desktop.
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