Copied to clipboard

Flag this post as spam?

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


  • Alias Varghese 2 posts 72 karma points
    Dec 10, 2019 @ 11:44
    Alias Varghese
    0

    Get older version of content

    I am using umbraco version 8.I need to get the older version of a content . I have the version id of the document, but I am not able to get the older version of mntp and children I have for that document. Any helps would be highly appreciated. Here is the code I am using

                    IContentService contentService = Services.ContentService;
                    IContent NodeItem = contentService.GetVersion(2421);
                    var tasks = NodeItem .GetValue<string>("tasks");
    

    1. I need to get the 2421 version of NodeItem children 2. tasks is MNTP . So I need to get the 2421 version of tasks

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Dec 10, 2019 @ 12:24
    Alex Skrypnyk
    0

    Hi Alias

    Are you using Umbraco 8? Latest version?

    Alex

  • Alias Varghese 2 posts 72 karma points
    Dec 10, 2019 @ 12:25
    Alias Varghese
    0

    Yes. I am using v8

  • 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