Skip to content

Instantly share code, notes, and snippets.

@SitefinityGuru
Created April 17, 2012 19:49
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 SitefinityGuru/2408581 to your computer and use it in GitHub Desktop.
Save SitefinityGuru/2408581 to your computer and use it in GitHub Desktop.
Remove Sitefinity Page Extensions
using (var api = App.WorkWith())
{
var pages = api.Pages().LocatedIn(PageLocation.Frontend).ThatArePublished()
.ForEach(page =>
{
page.Extension = null;
}).SaveChanges();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment