Return blocklist values
# help-with-umbraco
t
Hi I have a page which in turn has blocklist which holds an integer value. This blocklist can be added multiple times to the one page. I would like to return all integer values from all the blocklists on this page in razor (but may change to C#). I tried var intLists = Model.myRecords.Where(r=> r. But the property I am looking for is not there. I see content, contentUdi etc) but not the property that is holding the integer value. Anybody know the correct way to get this? Thank you
d
.Content should give you the element as publishedelement where you can get it by doing .Value or something similar. I dont remember the exact syntax sorry! 😄
3 Views