Are you referring to page, tab ordering or the ordering of pages/blocks in a folder in the content tree?
Hi Bill,
We only need to make sure that the order of property is identity in same tab and same content. There is a best practice about setting order value is not setting order value consecutively if you want to insert new properties in future.
For example:
Hope this help
As Binh said it's just down to tab and numerical value. So as long as per tab the values increment they will appear in the correct order.
At my agency we increment in values of 10 so that if we need to place a property in between two others you can, else if it's just single number increments you'd have to renumber
My practice to have groups increment in 100's but then have increments of just 1 within group properties
[Display(
Name = "Product Page Links",
GroupName = Global.GroupNames.SiteSettings,
Order = 100)]
public virtual LinkItemCollection ProductPageLinks { get; set; }
[Display(
Name = "Company Information Links",
GroupName = Global.GroupNames.SiteSettings,
Order = 101)]
public virtual LinkItemCollection CompanyInformationPageLinks { get; set; }
[Display(
Name = "News Page Links"
GroupName = Global.GroupNames.SiteSettings, Order = 102)]
public virtual LinkItemCollection NewsPageLinks { get; set; }
[Display(
Name = "Basket page",
GroupName = Constants.TabNames.CommerceSiteSettings,
Order = 200)]
public virtual ContentReference BasketPage { get; set; }
[Display(
Name = "Checkout page",
GroupName = Constants.TabNames.CommerceSiteSettings,
Order = 201)]
public virtual ContentReference CheckoutPage { get; set; }
What is the proper way of assigning value to order attribute of pages and blocks? In startpage of Alloy template, properties are assigned with random order values like 300, 350, 400 whereas buttonblocks is assigned with 1,2 etc. It looks like the order number of one content does not conflict with that of another content.
UPDATED: