Try our conversational search powered by Generative AI!

Set sort index of page in code

Vote:
 

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?

#42819
Sep 02, 2010 11:34
Vote:
 

Found it! It's called PagePeerOrder.

#42820
Sep 02, 2010 11:39
Vote:
 

I refer to this wiki page all the time:

http://epiwiki.se/developing/properties/all-built-in-properties

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.

#42834
Sep 02, 2010 15:55
Vote:
 

Thanks! That one goes straight to the bookmarks.

#42835
Sep 02, 2010 16:02
Vote:
 

You have the same overview in the SDK: http://sdk.episerver.com/library/cms6/html/P_EPiServer_Core_PageData_Property.htm

#42836
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.