Wrong order of properties in Edit mode



Even though I use "Order" when decorating my properties they don't show up in that order in Edit mode. How can I fix this? The code below is one of my properties and I have like seven more with Order = 20, Order = 30, Order = 40 and so on...

   GroupName = SystemTabNames.Content,
   Order = 10)]
public virtual ContentReference BannerImage { get; set; }

Thank you!

Edited, Sep 27, 2017 15:26

If site administrator changes the sort order of one property in admin mode (Admin / Content Type / Page Types / ...), episerver will modify the sort order of all properties for that page type.

To reset the sort order (use the value defined in the code), you have to click on every single property and select Revert to Default.

Sep 27, 2017 16:08

Checked the regular stuff when content types aren´t updated?

  • Up the assembly version
  • Be by yourself in the DB
  • Set a GUID for the ContentType
Sep 27, 2017 16:12

Thank you guys, I'll try those things out!

I just noticed that a few page types show the correct order, and on these pages I can also change the ordering by increasing och decreasing the "Order" value in the code. This is obviously what I want on all page types.

But, for those page types that I consider show properties in incorrect order it is impossible for me to provoke a different order. Like setting "Order = 1000" or not set an order number at all etc.

So, it actually works on some page types. Does that help any of you to make another good guess?

Sep 27, 2017 17:01

Sounds like Revert to Default clicks are needed then.

Sep 27, 2017 17:14

I agree, I'll try it today. Thank you.

Sep 28, 2017 8:49

Thank you guys, it worked! smile

Sep 28, 2017 10:06
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.