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 200 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 3074 posts 13632 karma points MVP 11x 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 200 karma points
    Aug 21, 2014 @ 16:46
    jeff mayer
    0

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

Please Sign in or register to post replies

Write your reply to:

Draft