Class HtmlHelperRenderExtensions
HtmlHelper extensions for use in templates
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public static class HtmlHelperRenderExtensions
Methods
Action(HtmlHelper, String, Type)
Returns the result of a child action of a SurfaceController
Declaration
public static IHtmlString Action(this HtmlHelper htmlHelper, string actionName, Type surfaceType)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
System.String |
actionName |
|
System.Type |
surfaceType |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
Action<T>(HtmlHelper, String)
Returns the result of a child action of a strongly typed SurfaceController
Declaration
public static IHtmlString Action<T>(this HtmlHelper htmlHelper, string actionName)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
System.String |
actionName |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
Type Parameters
AreaPartial(HtmlHelper, String, String, Object, ViewDataDictionary)
Renders a partial view that is found in the specified area
Declaration
public static MvcHtmlString AreaPartial(this HtmlHelper helper, string partial, string area, object model = null, ViewDataDictionary viewData = null)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
helper |
|
System.String |
partial |
|
System.String |
area |
|
System.Object |
model |
|
System.Web.Mvc.ViewDataDictionary |
viewData |
|
Returns
Type |
Description |
System.Web.Mvc.MvcHtmlString |
|
Helper method to create a new form to execute in the Umbraco request pipeline against a locally declared controller
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline against a locally declared controller
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, object additionalRouteVals)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.Object |
additionalRouteVals |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline against a locally declared controller
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, object additionalRouteVals, IDictionary<string, object> htmlAttributes)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.Object |
additionalRouteVals |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline against a locally declared controller
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, object additionalRouteVals, IDictionary<string, object> htmlAttributes, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.Object |
additionalRouteVals |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline against a locally declared controller
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, object additionalRouteVals, object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.Object |
additionalRouteVals |
|
System.Object |
htmlAttributes |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline against a locally declared controller
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, object additionalRouteVals, object htmlAttributes, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.Object |
additionalRouteVals |
|
System.Object |
htmlAttributes |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline against a locally declared controller
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, object additionalRouteVals, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.Object |
additionalRouteVals |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, string area)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.String |
area |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, string area, object additionalRouteVals, IDictionary<string, object> htmlAttributes)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.String |
area |
|
System.Object |
additionalRouteVals |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, string area, object additionalRouteVals, IDictionary<string, object> htmlAttributes, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.String |
area |
|
System.Object |
additionalRouteVals |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, string area, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.String |
area |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline against a locally declared controller
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, string controllerName, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.String |
controllerName |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, Type surfaceType)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Type |
surfaceType |
The surface controller to route to
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, Type surfaceType, object additionalRouteVals)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Type |
surfaceType |
The surface controller to route to
|
System.Object |
additionalRouteVals |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, Type surfaceType, object additionalRouteVals, IDictionary<string, object> htmlAttributes)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Type |
surfaceType |
The surface controller to route to
|
System.Object |
additionalRouteVals |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, Type surfaceType, object additionalRouteVals, IDictionary<string, object> htmlAttributes, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Type |
surfaceType |
The surface controller to route to
|
System.Object |
additionalRouteVals |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, Type surfaceType, object additionalRouteVals, object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Type |
surfaceType |
The surface controller to route to
|
System.Object |
additionalRouteVals |
|
System.Object |
htmlAttributes |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, Type surfaceType, object additionalRouteVals, object htmlAttributes, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Type |
surfaceType |
The surface controller to route to
|
System.Object |
additionalRouteVals |
|
System.Object |
htmlAttributes |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, Type surfaceType, object additionalRouteVals, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Type |
surfaceType |
The surface controller to route to
|
System.Object |
additionalRouteVals |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm(this HtmlHelper html, string action, Type surfaceType, FormMethod method)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Type |
surfaceType |
The surface controller to route to
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm<T>(this HtmlHelper html, string action)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Type Parameters
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm<T>(this HtmlHelper html, string action, object additionalRouteVals)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Object |
additionalRouteVals |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Type Parameters
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm<T>(this HtmlHelper html, string action, object additionalRouteVals, IDictionary<string, object> htmlAttributes)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Object |
additionalRouteVals |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Type Parameters
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm<T>(this HtmlHelper html, string action, object additionalRouteVals, IDictionary<string, object> htmlAttributes, FormMethod method)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Object |
additionalRouteVals |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Type Parameters
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm<T>(this HtmlHelper html, string action, object additionalRouteVals, object htmlAttributes)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Object |
additionalRouteVals |
|
System.Object |
htmlAttributes |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Type Parameters
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm<T>(this HtmlHelper html, string action, object additionalRouteVals, object htmlAttributes, FormMethod method)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Object |
additionalRouteVals |
|
System.Object |
htmlAttributes |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Type Parameters
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm<T>(this HtmlHelper html, string action, object additionalRouteVals, FormMethod method)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Object |
additionalRouteVals |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Type Parameters
Helper method to create a new form to execute in the Umbraco request pipeline to a surface controller plugin
Declaration
public static MvcForm BeginUmbracoForm<T>(this HtmlHelper html, string action, FormMethod method)where T : SurfaceController
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
action |
|
System.Web.Mvc.FormMethod |
method |
|
Returns
Type |
Description |
System.Web.Mvc.Html.MvcForm |
|
Type Parameters
CachedPartial(HtmlHelper, String, Object, Int32, Boolean, Boolean, ViewDataDictionary, Func<Object, ViewDataDictionary, String>)
Declaration
public static IHtmlString CachedPartial(this HtmlHelper htmlHelper, string partialViewName, object model, int cachedSeconds, bool cacheByPage = false, bool cacheByMember = false, ViewDataDictionary viewData = null, Func<object, ViewDataDictionary, string> contextualKeyBuilder = null)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
System.String |
partialViewName |
|
System.Object |
model |
|
System.Int32 |
cachedSeconds |
|
System.Boolean |
cacheByPage |
|
System.Boolean |
cacheByMember |
|
System.Web.Mvc.ViewDataDictionary |
viewData |
|
System.Func<System.Object, System.Web.Mvc.ViewDataDictionary, System.String> |
contextualKeyBuilder |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
EditorFor<T>(HtmlHelper, String, String, Object)
Declaration
public static MvcHtmlString EditorFor<T>(this HtmlHelper htmlHelper, string templateName = "", string htmlFieldName = "", object additionalViewData = null)where T : new ()
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
System.String |
templateName |
|
System.String |
htmlFieldName |
|
System.Object |
additionalViewData |
|
Returns
Type |
Description |
System.Web.Mvc.MvcHtmlString |
|
Type Parameters
EnableCanvasDesigner(HtmlHelper, UrlHelper, UmbracoContext)
Declaration
public static IHtmlString EnableCanvasDesigner(this HtmlHelper html, UrlHelper url, UmbracoContext umbCtx)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.Web.Mvc.UrlHelper |
url |
|
UmbracoContext |
umbCtx |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
EnableCanvasDesigner(HtmlHelper, UrlHelper, UmbracoContext, String)
Declaration
public static IHtmlString EnableCanvasDesigner(this HtmlHelper html, UrlHelper url, UmbracoContext umbCtx, string canvasdesignerConfigPath)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.Web.Mvc.UrlHelper |
url |
|
UmbracoContext |
umbCtx |
|
System.String |
canvasdesignerConfigPath |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
EnableCanvasDesigner(HtmlHelper, UrlHelper, UmbracoContext, String, String)
Declaration
public static IHtmlString EnableCanvasDesigner(this HtmlHelper html, UrlHelper url, UmbracoContext umbCtx, string canvasdesignerConfigPath, string canvasdesignerPalettesPath)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.Web.Mvc.UrlHelper |
url |
|
UmbracoContext |
umbCtx |
|
System.String |
canvasdesignerConfigPath |
|
System.String |
canvasdesignerPalettesPath |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
GetCropUrl(HtmlHelper, String, Nullable<Int32>, Nullable<Int32>, String, String, Nullable<Int32>, Nullable<ImageCropMode>, Nullable<ImageCropAnchor>, Boolean, Boolean, String, String, Nullable<ImageCropRatioMode>, Boolean)
Declaration
[Obsolete("Use the UrlHelper.GetCropUrl extension instead")]
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)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
System.String |
imageUrl |
|
System.Nullable<System.Int32> |
width |
|
System.Nullable<System.Int32> |
height |
|
System.String |
imageCropperValue |
|
System.String |
cropAlias |
|
System.Nullable<System.Int32> |
quality |
|
System.Nullable<ImageCropMode> |
imageCropMode |
|
System.Nullable<ImageCropAnchor> |
imageCropAnchor |
|
System.Boolean |
preferFocalPoint |
|
System.Boolean |
useCropDimensions |
|
System.String |
cacheBusterValue |
|
System.String |
furtherOptions |
|
System.Nullable<ImageCropRatioMode> |
ratioMode |
|
System.Boolean |
upScale |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
GetCropUrl(HtmlHelper, IPublishedContent, Nullable<Int32>, Nullable<Int32>, String, String, Nullable<Int32>, Nullable<ImageCropMode>, Nullable<ImageCropAnchor>, Boolean, Boolean, Boolean, String, Nullable<ImageCropRatioMode>, Boolean)
Declaration
[Obsolete("Use the UrlHelper.GetCropUrl extension instead")]
public static IHtmlString GetCropUrl(this HtmlHelper htmlHelper, IPublishedContent mediaItem, int ? width = null, int ? height = null, string propertyAlias = "umbracoFile", 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)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
IPublishedContent |
mediaItem |
|
System.Nullable<System.Int32> |
width |
|
System.Nullable<System.Int32> |
height |
|
System.String |
propertyAlias |
|
System.String |
cropAlias |
|
System.Nullable<System.Int32> |
quality |
|
System.Nullable<ImageCropMode> |
imageCropMode |
|
System.Nullable<ImageCropAnchor> |
imageCropAnchor |
|
System.Boolean |
preferFocalPoint |
|
System.Boolean |
useCropDimensions |
|
System.Boolean |
cacheBuster |
|
System.String |
furtherOptions |
|
System.Nullable<ImageCropRatioMode> |
ratioMode |
|
System.Boolean |
upScale |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
GetCropUrl(HtmlHelper, IPublishedContent, String)
Declaration
[Obsolete("Use the UrlHelper.GetCropUrl extension instead")]
public static IHtmlString GetCropUrl(this HtmlHelper htmlHelper, IPublishedContent mediaItem, string cropAlias)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
IPublishedContent |
mediaItem |
|
System.String |
cropAlias |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
GetCropUrl(HtmlHelper, IPublishedContent, String, String)
Declaration
[Obsolete("Use the UrlHelper.GetCropUrl extension instead")]
public static IHtmlString GetCropUrl(this HtmlHelper htmlHelper, IPublishedContent mediaItem, string propertyAlias, string cropAlias)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
IPublishedContent |
mediaItem |
|
System.String |
propertyAlias |
|
System.String |
cropAlias |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
PreviewBadge(HtmlHelper)
Will render the preview badge when in preview mode which is not required ever unless the MVC page you are
using does not inherit from UmbracoTemplatePage
Declaration
public static MvcHtmlString PreviewBadge(this HtmlHelper helper)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
helper |
|
Returns
Type |
Description |
System.Web.Mvc.MvcHtmlString |
|
RenderProfiler(HtmlHelper)
Renders the markup for the profiler
Declaration
public static IHtmlString RenderProfiler(this HtmlHelper helper)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
helper |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
ValidationSummary(HtmlHelper, String, Boolean, String, IDictionary<String, Object>)
A validation summary that lets you pass in a prefix so that the summary only displays for elements
containing the prefix. This allows you to have more than on validation summary on a page.
Declaration
public static MvcHtmlString ValidationSummary(this HtmlHelper htmlHelper, string prefix = "", bool excludePropertyErrors = false, string message = "", IDictionary<string, object> htmlAttributes = null)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
htmlHelper |
|
System.String |
prefix |
|
System.Boolean |
excludePropertyErrors |
|
System.String |
message |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
Returns
Type |
Description |
System.Web.Mvc.MvcHtmlString |
|
Wrap(HtmlHelper, Boolean, String, String, Object, IHtmlTagWrapper[])
Declaration
public static HtmlTagWrapper Wrap(this HtmlHelper html, bool visible, string tag, string innerText, object anonymousAttributes, params IHtmlTagWrapper[] children)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.Boolean |
visible |
|
System.String |
tag |
|
System.String |
innerText |
|
System.Object |
anonymousAttributes |
|
IHtmlTagWrapper[] |
children |
|
Returns
Wrap(HtmlHelper, String, Object)
Declaration
public static HtmlTagWrapper Wrap(this HtmlHelper html, string tag, object inner)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
tag |
|
System.Object |
inner |
|
Returns
Wrap(HtmlHelper, String, Object, Object, IHtmlTagWrapper[])
Declaration
public static HtmlTagWrapper Wrap(this HtmlHelper html, string tag, object inner, object anonymousAttributes, params IHtmlTagWrapper[] children)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
tag |
|
System.Object |
inner |
|
System.Object |
anonymousAttributes |
|
IHtmlTagWrapper[] |
children |
|
Returns
Wrap(HtmlHelper, String, String, Object, IHtmlTagWrapper[])
Declaration
public static HtmlTagWrapper Wrap(this HtmlHelper html, string tag, string innerText, object anonymousAttributes, params IHtmlTagWrapper[] children)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
tag |
|
System.String |
innerText |
|
System.Object |
anonymousAttributes |
|
IHtmlTagWrapper[] |
children |
|
Returns
Wrap(HtmlHelper, String, String, IHtmlTagWrapper[])
Declaration
public static HtmlTagWrapper Wrap(this HtmlHelper html, string tag, string innerText, params IHtmlTagWrapper[] children)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HtmlHelper |
html |
|
System.String |
tag |
|
System.String |
innerText |
|
IHtmlTagWrapper[] |
children |
|
Returns