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
HI there
I have a folder of images (custom media document type) with a custom property attached.
I and am trying to get a count of media items that have a specific value in the custom property.
My code is below but it is not returning a count.
int currNoEntriesForSection = m.Children.Where(t => t.getProperty("entryNodeID").Value.ToString().Equals(entryID.ToString())).Count();
I have checked and can confirm that I have a media node assigned under the variable "m". Also entryID variable is returning the correct value.
Is anyone able to advise the error of my ways with the above ?
Thanks
Nigel
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Selecting Media Items Help
HI there
I have a folder of images (custom media document type) with a custom property attached.
I and am trying to get a count of media items that have a specific value in the custom property.
My code is below but it is not returning a count.
I have checked and can confirm that I have a media node assigned under the variable "m". Also entryID variable is returning the correct value.
Is anyone able to advise the error of my ways with the above ?
Thanks
Nigel
is working on a reply...