getting cropped images after UrlHelper Extention was introduced
I have upgraded a site or two to 7.4.2 and 7.4.3
now crops are not working pulling from a mediafolder using my partial.
@{
var galleryFolder = Umbraco.TypedMedia(Model.Content.GetPropertyValue<int>("galleryFolder"));
// Get all child items based on the 'CWS_Gallery' and group them is 4
if (galleryFolder != null){
<!-- Content -->
<div class="row">
@foreach (var group in galleryFolder.Children.InGroupsOf(4))
{
foreach (var item in group)
{
// find you whether is the first item of the group and set the css class
var itemClass = item.IsFirst("first item left", "item left");
// tell images and links where to find sources of datatypes
var src = item.GetCropUrl("cropper", "thumbNail");
var photosrc = item.GetCropUrl("cropper", "photo");
<div class="col-lg-3 col-md-3 col-sm-3">
<div class="@itemClass">
<a class="fancybox" href="@photosrc" data-fancybox-group="gallery"><img src="@src" alt="@item.Name" />@item.Name</a>
<span>@item.GetPropertyValue("PhotoText")</span>
</div>
</div>
}
}
</div>
<!-- /Content -->
}
}
I see the updated documentation but nothing seems to work.
Do you get any kind of error message or does the images just not render all of the sudden?
Have you checked the /config/logs file to see if it reveals more details that could be related...anything marked with "ERROR" that might give a clue? And have you checked the browsers console log to see if that provides anything of use? - I doubt that the console log will give any hints in this situation but worth checking for good measure imho :)
getting cropped images after UrlHelper Extention was introduced
I have upgraded a site or two to 7.4.2 and 7.4.3
now crops are not working pulling from a mediafolder using my partial.
I see the updated documentation but nothing seems to work.
Hi Keith
Do you get any kind of error message or does the images just not render all of the sudden?
Have you checked the /config/logs file to see if it reveals more details that could be related...anything marked with "ERROR" that might give a clue? And have you checked the browsers console log to see if that provides anything of use? - I doubt that the console log will give any hints in this situation but worth checking for good measure imho :)
/Jan
is working on a reply...