Home

How to set a page updated programmatically

By Johan Pettersson 13 January 2010 17:43

If you want to mimic the “Mark page as changed”-checkbox in code it's not so obvious how to do that.

PageData writeablePage = CurrentPage.CreateWritableClone();
writeablePage["PageChangedOnPublish"] = true;

DataFactory.Instance.Save(
    writeablePage,
    SaveAction.Publish,
    AccessLevel.NoAccess);

The CurrentPage.Changed property will now get updated when we publish the page.

Posted in EPiServerTags

PermalinkComments (0)

Add comment

Browse by

Tags

Dates

2010
August (1)
April (2)
January (2)
2009
December (4)
November (2)
October (1)