Copied to clipboard

Flag this post as spam?

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


  • jeff mayer 122 posts 199 karma points
    Aug 18, 2014 @ 15:41
    jeff mayer
    0

    Getting Doctype Alias in MNTP loop

    Have a for loop to get items from MNTP. How do I check the doctype of each record in the loop in U7 razor? 

     

     

    @{

        var dynamicMultiNodeTreePicker = CurrentPage.resourcespicker;

        foreach (var item in dynamicMultiNodeTreePicker)

        {

     // how do I check the doctype of each item       

    }

    }

     

  • Jeavon Leopold 3008 posts 13221 karma points MVP 7x admin c-trib
    Aug 18, 2014 @ 15:54
    Jeavon Leopold
    1

    Something like this:

    @{
    
        var dynamicMultiNodeTreePicker = CurrentPage.resourcespicker;
    
        foreach (var item in dynamicMultiNodeTreePicker)
        {
    
            // how do I check the doctype of each item
            if (item.DocumentTypeAlias == "something")
            {
    
            }
    
        }
    
    }
    
  • jeff mayer 122 posts 199 karma points
    Aug 21, 2014 @ 16:46
    jeff mayer
    0

    Thanks again as usual Jeavon. You always seem to have the right answer :)

  • 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