Adds Property Type to the published content model, fixes some web.config versions
This commit is contained in:
@@ -195,72 +195,6 @@ namespace Umbraco.Web
|
||||
return htmlHelper.Action(actionName, metaData.ControllerName, routeVals);
|
||||
}
|
||||
|
||||
#region GetCropUrl
|
||||
|
||||
[Obsolete("Use the UrlHelper.GetCropUrl extension instead")]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public static IHtmlString GetCropUrl(this HtmlHelper htmlHelper, IPublishedContent mediaItem, string cropAlias)
|
||||
{
|
||||
return new HtmlString(mediaItem.GetCropUrl(cropAlias: cropAlias, useCropDimensions: true));
|
||||
}
|
||||
|
||||
[Obsolete("Use the UrlHelper.GetCropUrl extension instead")]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public static IHtmlString GetCropUrl(this HtmlHelper htmlHelper, IPublishedContent mediaItem, string propertyAlias, string cropAlias)
|
||||
{
|
||||
return new HtmlString(mediaItem.GetCropUrl(propertyAlias: propertyAlias, cropAlias: cropAlias, useCropDimensions: true));
|
||||
}
|
||||
|
||||
[Obsolete("Use the UrlHelper.GetCropUrl extension instead")]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public static IHtmlString GetCropUrl(this HtmlHelper htmlHelper,
|
||||
IPublishedContent mediaItem,
|
||||
int? width = null,
|
||||
int? height = null,
|
||||
string propertyAlias = Constants.Conventions.Media.File,
|
||||
string cropAlias = null,
|
||||
int? quality = null,
|
||||
ImageCropMode? imageCropMode = null,
|
||||
ImageCropAnchor? imageCropAnchor = null,
|
||||
bool preferFocalPoint = false,
|
||||
bool useCropDimensions = false,
|
||||
bool cacheBuster = true,
|
||||
string furtherOptions = null,
|
||||
ImageCropRatioMode? ratioMode = null,
|
||||
bool upScale = true)
|
||||
{
|
||||
return
|
||||
new HtmlString(mediaItem.GetCropUrl(width, height, propertyAlias, cropAlias, quality, imageCropMode,
|
||||
imageCropAnchor, preferFocalPoint, useCropDimensions, cacheBuster, furtherOptions, ratioMode,
|
||||
upScale));
|
||||
}
|
||||
|
||||
[Obsolete("Use the UrlHelper.GetCropUrl extension instead")]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public static IHtmlString GetCropUrl(this HtmlHelper htmlHelper,
|
||||
string imageUrl,
|
||||
int? width = null,
|
||||
int? height = null,
|
||||
string imageCropperValue = null,
|
||||
string cropAlias = null,
|
||||
int? quality = null,
|
||||
ImageCropMode? imageCropMode = null,
|
||||
ImageCropAnchor? imageCropAnchor = null,
|
||||
bool preferFocalPoint = false,
|
||||
bool useCropDimensions = false,
|
||||
string cacheBusterValue = null,
|
||||
string furtherOptions = null,
|
||||
ImageCropRatioMode? ratioMode = null,
|
||||
bool upScale = true)
|
||||
{
|
||||
return
|
||||
new HtmlString(imageUrl.GetCropUrl(width, height, imageCropperValue, cropAlias, quality, imageCropMode,
|
||||
imageCropAnchor, preferFocalPoint, useCropDimensions, cacheBusterValue, furtherOptions, ratioMode,
|
||||
upScale));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region BeginUmbracoForm
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user