Geta.EPi.Extensions : API Documentation

Type UrlHelperExtensions

Namespace Geta.EPi.Extensions

Public static methods

IHtmlString PageLinkUrl(this UrlHelper urlHelper, PageReference pageLink)

Returns the target URL for a PageReference. Respects the page's shortcut setting so if the page is set as a shortcut to another page or an external URL that URL will be returned.
Parameters
UrlHelper urlHelper
UrlHelper instance.
PageReference pageLink
Page reference for which to return URL.
Returns
IHtmlString
Returns Html string with URL.

IHtmlString PageLinkUrl(this UrlHelper urlHelper, PageReference pageLink, string defaultValue)

Returns the target URL for a PageReference. Respects the page's shortcut setting so if the page is set as a shortcut to another page or an external URL that URL will be returned.
Parameters
UrlHelper urlHelper
UrlHelper instance.
PageReference pageLink
Page reference for which to return URL.
string defaultValue
Default value which will be returned if URL not found.
Returns
IHtmlString
Returns Html string with URL if URL found otherwise Html string with defaultValue

IHtmlString PageUrl(this UrlHelper urlHelper, PageData page)

Returns the target URL for a page. Respects the page's shortcut setting so if the page is set as a shortcut to another page or an external URL that URL will be returned.
Parameters
UrlHelper urlHelper
UrlHelper instance.
PageData page
Page for which to find URL.
Returns
IHtmlString
Returns Html string with URL.

QueryStringBuilder QueryBuilder(this UrlHelper urlHelper, string url)

Creates QueryStringBuilder instance for provided url.
Parameters
UrlHelper urlHelper
UrlHelper instance.
string url
Url for which to create builder.
Returns
QueryStringBuilder
Instance of QueryStringBuilder for provided url

QueryStringBuilder QueryBuilder(this UrlHelper urlHelper, PageData page)

Creates QueryStringBuilder instance for provided EPiServer page.
Parameters
UrlHelper urlHelper
UrlHelper instance.
PageData page
Page for which to create builder.
Returns
QueryStringBuilder
Instance of QueryStringBuilder for provided page.

QueryStringBuilder QueryBuilder(this UrlHelper urlHelper, PageReference pageLink)

Creates QueryStringBuilder instance for provided EPiServer page reference.
Parameters
UrlHelper urlHelper
UrlHelper instance.
PageReference pageLink
Page reference for which to crete builder.
Returns
QueryStringBuilder
Instance of QueryStringBuilder for provided page reference.