Awesome data type and thanks for the code snippet to iterate through the results! I am having some difficulty with testing for first item in the property e.g.
@foreach( var item in CurrentPage.news )
{ if( item.First ) {...} else () }
doesn't seem to work. No luck with First(), or even dog[0]. I am trying to alter the html for the first returned item. The error is, "Cannot convert null to 'bool' because it is a non-nullable value type." Thanks in advance!
Trouble iterating through data
Hi
Awesome data type and thanks for the code snippet to iterate through the results! I am having some difficulty with testing for first item in the property e.g.
doesn't seem to work. No luck with First(), or even dog[0]. I am trying to alter the html for the first returned item. The error is, "Cannot convert null to 'bool' because it is a non-nullable value type." Thanks in advance!
Also, if I allow for multiple Media Picker items, how do I access each individually?
Hi Phillip.
Code snippet are update and now include snippit for multiple Media Picker and multiple Content Picker.
Cheers.
Awesome. Thank you!
is working on a reply...