London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi
your are on the right track, but you need to make some small changes
PageData page2=page.CreateWritableClone();
page2.Property["PagePeerOrder"].Value = defaultSortOrder;
EPiServer.DataFactory.Instance.Save(page2, EPiServer.DataAccess.SaveAction.Publish,
EPiServer.Security.AccessLevel.NoAccess);
Hi
I need to write a UI plugin which resets a list of pages to a default sort order.
However, I cannot work out how to programatically change the sort order of a page
I have tried using PagePeerOrder property of the PageData object but this is read-only
e.g.
foreach (PageData page in newsItemPages)
{
page["PagePeerOrder"] = defaultSortOrder;
}
Is it possible to programatically change the sort order of a page?
thanks a lot