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...
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.
Continue discussion
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...
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.