Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Although it's for EPiServer 7 this guide http://www.david-tec.com/2012/06/Comparing-PageTypeBuilder-and-EPiServer-7-Preview-typed-pages-part-3-of-3/ has the following.
Set on the pages/blocks overriden SetDefaultValues
this.Properties["PageChildOrderRule"].Value = EPiServer.Filters.FilterSortOrder.CreatedDescending;
I've not tried it however but the FilterSortOrder enum is still there in EPiServer 9
Hi,
I can confirm that this works, we use it in projects:
public override void SetDefaultValues(ContentType contentType) { this[MetaDataProperties.PageChildOrderRule] = FilterSortOrder.PublishedDescending; }
BR,
Marija
Thanks, this does the trick. I was hoping there is an attribute which I can use to decorate my classes.
In EPiServer 6 we could change a default order sort order of child pages using PageTypeBuilder.
Is there something similar in EPiServer 8?