Set sort index of page in code


I'm creating a couple of pages in code and would like to set the sort index for these pages. When I try newPage.Property["SortIndex"].Value = 10 I get "...not set to an instance..."-error and I read somewhere that it's actually called PageChildOrder but that didn't do any better. What's it called?

Sep 02, 2010 11:34

Found it! It's called PagePeerOrder.

Sep 02, 2010 11:39

I refer to this wiki page all the time:

It has a list of all the built-in properties that you probably don't know exist because they're not strongly-typed properties on the page.  Rather, they're indexed properties in the "Property" collection.

Sep 02, 2010 15:55

Thanks! That one goes straight to the bookmarks.

Sep 02, 2010 16:02

You have the same overview in the SDK:

Sep 02, 2010 16:13
* 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.