@foreach (dynamic theImagePage in Model.Descendants("sliderBanner").Where("umbracoNaviHide == false")) { //for each banner page in the repository
///// NEXT LINE IS WRONG /////
dynamic imageItem = theImagePage.bannerImmage.mediaItem.HomePageBanner.First();
var theCrop = DAMP_Helper.GetImageCropperUrl(imageItem, "sliderImage");
//do some stuff
}
Can anyone clear up what the 1st argument in GetImageCropperUrl(DynamicXml mediaItem, string cropName) should be from this XML as I'm totally confused:-
DAMP GetImageCropperUrl Help
In this bit of code,
Can anyone clear up what the 1st argument in GetImageCropperUrl(DynamicXml mediaItem, string cropName) should be from this XML as I'm totally confused:-
Have had so much trouble with Custom DAMP saving only ID, thought saving as XML might be clearer, but hey ho!
Couldn't safely edit above...
Am using the DAMP Razor model, (non-MVC version) with just the following in the head of the file:-
If you're using the DAMP Razor model you shouldn't use GetImageCropperUrl (which is an old helper). You should do this:
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.