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,
In V8.4 the following code gives the error
[ArgumentNullException: Value cannot be null. Parameter name: mediaItem]
for the line
var image = item.Value
TeamMemberPhoto is a imagecropper and not null.
I cannot find the solution. Published the page and document type several times. Can somebody help me please.
@foreach (var item in selection) { <div class="team-member"> <div class="team-member_image"> @if (item.Value("TeamMemberPhoto") != null) { <div class="team-member_image"> @{ var image = item.Value<IPublishedContent>("TeamMemberPhoto"); } <img src="@image.GetCropUrl("listPhoto")"> </div> } </div> }
Thanks, Bora
Hi Bora,
Did you get it to work ?
Thanks, Bart
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
image cropper in model.children not working
Hi,
In V8.4 the following code gives the error
[ArgumentNullException: Value cannot be null. Parameter name: mediaItem]
for the line
var image = item.Value
TeamMemberPhoto is a imagecropper and not null.
I cannot find the solution. Published the page and document type several times. Can somebody help me please.
Thanks, Bora
Hi Bora,
Did you get it to work ?
Thanks, Bart
is working on a reply...