Method | Description | |
---|---|---|
Clip ( string text, int maxLength, bool ellipsis ) : string |
Clips the specified text if the text is bigger than the maxLength provided.
|
|
CreateEmptyIterator ( ) : |
Creates the empty iterator. Used only internel by this class
|
|
CreateForLoop ( int to ) : |
Creates XML that can be used as a foor loop. Starting from 1 and to the provided to parameter.
|
|
CreateForLoop ( int from, int to ) : |
Creates XML that can be used as a foor loop. Starting from parameter from and to the provided to parameter.
|
|
CreateRfc822Date ( string isodate ) : string |
Returns the RFC822 datetime format for the specified isodate. RFC822 should be used when generating rss feeds etc
|
|
FetchFeedAndNormaliseToAtom ( string url ) : |
Fetches a external rss/atom feed and normalise it to atom schema.
|
|
FormatIsoDate ( string isodate, string fieldNameInSettings ) : string |
Formats the iso date.
|
|
FormatIsoDateLong ( string isodate ) : string |
Formats the iso date long.
|
|
FormatIsoDateShort ( string isodate ) : string |
Formats the iso date short.
|
|
FormatIsoDateTime ( string isodate ) : string |
Formats the iso to date and time.
|
|
FormatIsoTime ( string isodate ) : string |
Formats the iso to time.
|
|
GetCurrentCultureName ( ) : string |
Gets the name of the current culture.
|
|
GetDescendantsViaXPath ( |
||
GetDictionaryItem ( string key ) : string |
Gets a dictionary item from Umbraco. If querystring parameter debug exists a debug span is also provided.
|
|
GetFileExtension ( string filename ) : string |
Gets the file extension.
|
|
GetHomeNode ( ) : |
Gets the home node.
|
|
GetImageTag ( string imagePathOrMediaId ) : string |
Gets an xhtml image tag via the provided media id or image path.
|
|
GetImageTag ( string imagePathOrMediaId, int maxWidth ) : string |
Gets an xhtml image tag via the provided media id or image path
|
|
GetImageTag ( string imagePathOrMediaId, int maxWidth, int maxHeight ) : string | ||
GetImageTag ( string imagePathOrMediaId, int maxWidth, int maxHeight, bool constrain ) : string | ||
GetLinkTag ( string nodeId ) : string |
Get a link tag Gets a link tag where the href points to the node and text will come from GetMenuTitle |
|
GetLinkTag ( string nodeId, string linkText ) : string |
Get a link tag with overload for the link text Gets a link tag where the href points to the node and you have provided the link text |
|
GetLinkTag ( string nodeId, string linkText, string cssClass ) : string |
Get a link tag with overload for the link text and a css class to add to the a tag. Gets a link tag where the href points to the node and you can add a css class |
|
GetMediaPath ( int mediaId ) : string |
Gets the media path via a media id
|
|
GetOEmbedHtml ( string url, string maxWidth, string maxHeight ) : string |
Gets the OEmbed HTML.
|
|
GetReadableFileSizeViaBytes ( string bytes ) : string |
Gets the readable file size via bytes.
|
|
GetTemplateIdFromAlias ( string templateAlias ) : int | ||
GetThumbnailUrl ( string imagePathOrMediaId, int width ) : string | ||
GetThumbnailUrl ( string imagePathOrMediaId, int width, int height ) : string | ||
GetThumbnailUrl ( string imagePathOrMediaId, int width, int height, bool constrain ) : string | ||
IsInUpacDebug ( ) : bool | ||
IsoDateNow ( ) : string | ||
MenuInclude ( |
A simple method which returns true if the node should be included in navigations. The following things must be true 1. The node must not have set the property hideFromNavigation true. 2. The node must have a template associated
|
|
MenuTitle ( |
||
ToBool ( string input ) : bool |
Converts a string to a bool. If the input string is equal 1 true is returned otherwise false.
|
|
ToNumber ( string input, int defaultNumber ) : int |
Converts a string to a number. If the input string is empty or can not be converted, the defaultNumber is returned instead.
|
|
UrlViaNodeId ( string nodeId ) : string |
Get the url to a node via node id. This method also handles redirect nodes which can point to internal or external pages. |
|
UrlViaNodeId ( string nodeId, string alternateTemplate ) : string |
Get the url to a node via node id and appending the provided alternate template
|
|
UrlViaNodeId ( string nodeId, string alternateTemplate, bool includeDomain ) : string |
Get the url to a node via node id and appending the provided alternate template and can include the domain incl. http://
|
Method | Description | |
---|---|---|
GetImageTag ( string imagePath, string altText ) : string |
public static Clip ( string text, int maxLength, bool ellipsis ) : string | ||
text | string | The text to be clipped. |
maxLength | int | Max length of the returned string. |
ellipsis | bool | if set to |
return | string |
public static CreateEmptyIterator ( ) : |
||
return |
public static CreateForLoop ( int to ) : |
||
to | int | ending point |
return |
public static CreateForLoop ( int from, int to ) : |
||
from | int | Start int |
to | int | End int |
return |
public static CreateRfc822Date ( string isodate ) : string | ||
isodate | string | |
return | string |
public static FetchFeedAndNormaliseToAtom ( string url ) : |
||
url | string | The external URL for the feed to fetch. |
return |
public static FormatIsoDate ( string isodate, string fieldNameInSettings ) : string | ||
isodate | string | The isodate. |
fieldNameInSettings | string | The field name in settings. |
return | string |
public static FormatIsoDateLong ( string isodate ) : string | ||
isodate | string | The isodate. |
return | string |
public static FormatIsoDateShort ( string isodate ) : string | ||
isodate | string | The isodate. |
return | string |
public static FormatIsoDateTime ( string isodate ) : string | ||
isodate | string | The isodate. |
return | string |
public static FormatIsoTime ( string isodate ) : string | ||
isodate | string | The isodate. |
return | string |
public static GetCurrentCultureName ( ) : string | ||
return | string |
public static GetDescendantsViaXPath ( |
||
from | ||
xpath | string | |
return |
public static GetDictionaryItem ( string key ) : string | ||
key | string | The dictionary key |
return | string |
public static GetFileExtension ( string filename ) : string | ||
filename | string | The filename. |
return | string |
public static GetHomeNode ( ) : |
||
return |
public static GetImageTag ( string imagePathOrMediaId ) : string | ||
imagePathOrMediaId | string | The image path or media id. |
return | string |
public static GetImageTag ( string imagePathOrMediaId, int maxWidth ) : string | ||
imagePathOrMediaId | string | The image path or media id. |
maxWidth | int | Max width. |
return | string |
public static GetImageTag ( string imagePathOrMediaId, int maxWidth, int maxHeight ) : string | ||
imagePathOrMediaId | string | |
maxWidth | int | |
maxHeight | int | |
return | string |
public static GetImageTag ( string imagePathOrMediaId, int maxWidth, int maxHeight, bool constrain ) : string | ||
imagePathOrMediaId | string | |
maxWidth | int | |
maxHeight | int | |
constrain | bool | |
return | string |
public static GetLinkTag ( string nodeId ) : string | ||
nodeId | string | The node id. |
return | string |
public static GetLinkTag ( string nodeId, string linkText ) : string | ||
nodeId | string | The node id. |
linkText | string | The link text. |
return | string |
public static GetLinkTag ( string nodeId, string linkText, string cssClass ) : string | ||
nodeId | string | The node id. |
linkText | string | The link text. |
cssClass | string | Css class |
return | string |
public static GetMediaPath ( int mediaId ) : string | ||
mediaId | int | The media id. |
return | string |
public static GetOEmbedHtml ( string url, string maxWidth, string maxHeight ) : string | ||
url | string | The OEmbed URL/Source. |
maxWidth | string | Width of the max. |
maxHeight | string | Height of the max. |
return | string |
public static GetReadableFileSizeViaBytes ( string bytes ) : string | ||
bytes | string | The bytes. |
return | string |
public static GetTemplateIdFromAlias ( string templateAlias ) : int | ||
templateAlias | string | |
return | int |
public static GetThumbnailUrl ( string imagePathOrMediaId, int width ) : string | ||
imagePathOrMediaId | string | |
width | int | |
return | string |
public static GetThumbnailUrl ( string imagePathOrMediaId, int width, int height ) : string | ||
imagePathOrMediaId | string | |
width | int | |
height | int | |
return | string |
public static GetThumbnailUrl ( string imagePathOrMediaId, int width, int height, bool constrain ) : string | ||
imagePathOrMediaId | string | |
width | int | |
height | int | |
constrain | bool | |
return | string |
public static MenuInclude ( |
||
ni | The node to check. | |
return | bool |
public static MenuTitle ( |
||
ni | ||
return | string |
public static ToBool ( string input ) : bool | ||
input | string | The input to be converted |
return | bool |
public static ToNumber ( string input, int defaultNumber ) : int | ||
input | string | The input to be converted |
defaultNumber | int | The default number to return if the input can not be converted. |
return | int |
public static UrlViaNodeId ( string nodeId ) : string | ||
nodeId | string | The node id. |
return | string |
public static UrlViaNodeId ( string nodeId, string alternateTemplate ) : string | ||
nodeId | string | The node id. |
alternateTemplate | string | The alternate template. |
return | string |
public static UrlViaNodeId ( string nodeId, string alternateTemplate, bool includeDomain ) : string | ||
nodeId | string | The node id. |
alternateTemplate | string | The alternate template. May be empty. |
includeDomain | bool | if set to |
return | string |