Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
}
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") { } } }
Thanks again as usual Jeavon. You always seem to have the right answer :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
}
}
Something like this:
Thanks again as usual Jeavon. You always seem to have the right answer :)
is working on a reply...