Copied to clipboard

Flag this post as spam?

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


  • Kurt 29 posts 111 karma points
    Jul 01, 2016 @ 21:14
    Kurt
    0

    Setting sort order of copy to that of the original

    When a page is published in certain section of our site, I'm creating copies of that page in related language nodes (using cs.Copy(c, parentRelation.ChildId, true)). That part is working just fine.

    I'm trying to then set the sort order in the Copied event, like so:

    void ContentService_Copied(IContentService sender, CopyEventArgs<IContent> e) {
        e.Copy.SortOrder = e.Original.SortOrder;
    }
    

    But that's not working. The (very) few examples of this I've found online have similar code, though not quite as simple as I'm looking for. Not sure what I'm supposed to do to get this working.

Please Sign in or register to post replies

Write your reply to:

Draft