Try our conversational search powered by Generative AI!

set pagechildorder programatically

Vote:
 
How can I set the pagechildorderrule of a page programatically? I tried rootPage.Property["PageChildOrderRule"].Value = FilterSortOrder.Alphabetical; but it doesn't seem to do anything. When I check the page in editmode afterwards the pagechildorderrule is still 1 (should be 3) and the childpages are still sorted according to when they were created, not alphabetically. I can change it in editmode, but when I create pages programatically it's not very optimal to have to go into editmode and change them afterwards :s
#13315
Jan 08, 2008 9:40
Vote:
 
my mistake, forgot to save the page after changing the property :)
#15591
Jan 08, 2008 10:20
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.