Method | Description | |
---|---|---|
NormalizePageUrlPath ( this urlHelper, string urlPath ) : string |
Normalizes a URL path for a Page. The following normalization actions are taken: |
|
ResponsiveImage ( this urlHelper, string sourceImageUrl, double aspect, string widthFactor, int containerSize ) : string |
Generates a responsive image URL. This is a thin wrapper around IMediaHelper.GetResponsiveImageUrl intended to make view code simpler. |
|
VersionedContent ( this helper, string relativePath, string localization = "" ) : string |
Gets a versioned URL (including the version number of the HTML design/assets). Versioned URLs are used to facilitate agressive caching of those assets; see Sdl.Web.Mvc.Statics.StaticContentModule. |
public static NormalizePageUrlPath ( this urlHelper, string urlPath ) : string | ||
urlHelper | this | |
urlPath | string | The input URL path. |
return | string |
public static ResponsiveImage ( this urlHelper, string sourceImageUrl, double aspect, string widthFactor, int containerSize ) : string | ||
urlHelper | this | |
sourceImageUrl | string | |
aspect | double | |
widthFactor | string | |
containerSize | int | |
return | string |
public static VersionedContent ( this helper, string relativePath, string localization = "" ) : string | ||
helper | this | The |
relativePath | string | The (unversioned) URL path relative to the system folder. |
localization | string | Not used (deprecated). |
return | string |