Copied to clipboard

Flag this post as spam?

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


  • Kadir 30 posts 80 karma points
    Jan 06, 2013 @ 10:39
    Kadir
    0

    Sorting by MultiNodePicker

    hi,

    sorting by order asked many times in this forum but i couldn't relevant topic for my question and here i am. I have a MultiNodePicker and I want to access to the SortOrder property. When I use:

    id="@contentItem.SortOrder"

    It is giving me order of the category and at the end i am having IDs like 2, 8, 9, 12, 3

    I would like to sort these nodes by the order in MultiNodePicker  like 1, 2, 3, 4, 5, 6

    Is this possible? or would it be possible to tell razor give id numbers starting from 1 to 6?

    Best,

     

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jan 06, 2013 @ 12:08
    Jan Skovgaard
    0

    Hi Kadir

    What version of Umbraco are you using? Is it 4.11 with MVC enabled or?

    Usually I think people would use OrderBy to achieve the above but if you're using MVC Razor then it might be a different story. Otherwise have a look at the OrderBy examples here http://umbraco.com/follow-us/blog-archive/2011/3/1/umbraco-razor-feature-walkthrough-%E2%80%93-part-4

    /Jan

  • Kadir 30 posts 80 karma points
    Jan 06, 2013 @ 21:53
    Kadir
    0

    Thank for the information. I am using 4.9.0. Maybe i should spend more time on these walkthroughs and come back later :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies