Copied to clipboard

Flag this post as spam?

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


  • Vidar A. Westrum 23 posts 129 karma points
    May 06, 2014 @ 13:32
    Vidar A. Westrum
    0

    Initial index when creating a new page

    Hi,

    I'm not sure if thep terms in topic is correct, but I'll try to explain.

    When you create a new page, i automatically puts itself at the bottom of it's level. I guess that means that the index is incremental. Is it possible to make it opposite? So that the new page gets Index 0, and the other ones increase with one? 

    The use case is this:
    In a news list, my client would like to get the newest article on top of the list. So I used .OrderBy("CreateDate desc"), which works great. But he also would like to manually bump up an article with manual sorting. 

    So, if when a new page is saved, it get's Index 0, that would solve it by using just manual sorting.

    Have any of you any solution for this?

Please Sign in or register to post replies

Write your reply to:

Draft