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
Im trying to show cropped images from a multi media picker recursively.
If none are define on currentpage go back on level and check, and so on. IM LOST!
@if (CurrentPage.AncestorOrSelf(1).HasValue("billeder")) { @CurrentPage._billeder }
@CurrentPage._billeder
Retunrs the media id's corectly. But from that to getting to showing the cropped images goes beyond my mental capacity...
I have some code for doing it dynamically, but cant get how to make that recursive either...
@if (Model.Content.HasValue("billeder")) { }
Any help would be great :)
Ahhh, after hours of googlin the magic of incomprehensible Razor strikes again... to do it recurcivle i just had to add ",true"
@if (Model.Content.HasValue("billeder", true)) { }
Lets leave it here as a reference for other non .NET coding frontenders like myself :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Recursively getting cropped images for multi media picker
If none are define on currentpage go back on level and check, and so on. IM LOST!
Retunrs the media id's corectly. But from that to getting to showing the cropped images goes beyond my mental capacity...
I have some code for doing it dynamically, but cant get how to make that recursive either...
Any help would be great :)
Ahhh, after hours of googlin the magic of incomprehensible Razor strikes again... to do it recurcivle i just had to add ",true"
Lets leave it here as a reference for other non .NET coding frontenders like myself :)
is working on a reply...