Developer forum

Forum » Feature requests » Item publisher - sort by "User defined"

Item publisher - sort by "User defined"

Martin Nielsen
Reply

Hi DW,

 

With eCom you have the ability to sort products by "User defined", which uses the order defined by the users in the backend, via Drag and drop etc.

 

Since Items created as pages and paragraphs all have a sort key, wouldn't it be possible for Items to be sortet after this key in the Item publisher as well?

 

I have a scenario where a customer uses Items to list a lot of images, and current they are sorted by a number field i created on the item type. When a new item needs to be added in the middle of the list, the customer has to update the sortkey on all other images.

 

// Martin

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

You can order by "Sort value" - that should do the trick

 

 

itempublisher.PNG
 
Martin Nielsen
Reply

Hi Nicolai,

 

Guess it was added later than 8.2.1.11.

I need to start testing my stuff on the latest builds.

 

Maybe the label for this sort method should be "User defined" for consistency with modules like eCom Catalog.

 

// Martin

 
Remi Muller
Reply

i tried this from the api by using:

new OrderBy("Sort value",OrderByDirection.Ascending)

Is it possible to support user defined sorting?