Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stefan Frederiksen 3 posts 83 karma points
    May 28, 2019 @ 07:14
    Stefan Frederiksen
    0

    Updating sortOrder system field in List View

    I was wondering if it was possible to update the system field "sortOrder" which the List View's are defaultly sorted by.

    For example like in the "reorder" section of Design it is possible to update the numerical sort order values manually, but is this also possible for List View items, so I can choose the actual order in which they are shown?

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    May 28, 2019 @ 09:29
    Michaël Vanbrabandt
    0

    Hi Stefan,

    when you have setup a listview, in the config of that listview at the bottom you see:

    enter image description here

    Is this what you are looking for?

    Hope this helps!

    /Michaël

  • Stefan Frederiksen 3 posts 83 karma points
    May 28, 2019 @ 09:37
    Stefan Frederiksen
    0

    Hey Michaël,

    Not exactly. I can see that menu and have it like this.

    enter image description here

    And the elements are displayed like this.

    enter image description here

    But I would like to be able to manually change their sort value in the backoffice, like it is possible to do when reordering the content of a document type. There it can be either drag-n-dropped, or manually set a sort value that it will sort them by. Like in this tutorial: https://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/document-types/reordering/ it shows the following screen.

    enter image description here

    Is this possible for List View without having to make your own custom property? As in being able to change the sort value of the child items?

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    May 28, 2019 @ 09:47
    Michaël Vanbrabandt
    100

    Stefan,

    in the listview settings this won't be possible. What you can do is the following. Go to the content section > select your list view node > right click on the node or go to actions and select sort.

    enter image description here

    Here you can drag and drop the sort order.

    /Michaël

  • Stefan Frederiksen 3 posts 83 karma points
    May 28, 2019 @ 10:48
    Stefan Frederiksen
    0

    That is perfect! Thank you!

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    May 28, 2019 @ 11:07
    Michaël Vanbrabandt
    0

    No problem glad it solved your problem!

    Have a nice day and don't forget to mark the answer for your solution so others with the same problem can find the correct answer.

    /Michaël

Please Sign in or register to post replies

Write your reply to:

Draft