Try our conversational search powered by Generative AI!

Wrong order of properties in Edit mode

Vote:
 

Hi,

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

[Display(
   GroupName = SystemTabNames.Content,
   Order = 10)]
[UIHint(UIHint.Image)]
public virtual ContentReference BannerImage { get; set; }

Thank you!

#182673
Edited, Sep 27, 2017 15:26
Vote:
 

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.

#182679
Sep 27, 2017 16:08
Vote:
 

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
#182680
Sep 27, 2017 16:12
Vote:
 

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?

#182683
Sep 27, 2017 17:01
Vote:
 

Sounds like Revert to Default clicks are needed then.

#182684
Sep 27, 2017 17:14
Vote:
 

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

#182701
Sep 28, 2017 8:49
Vote:
 

Thank you guys, it worked! smile

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