Метод | Описание | |
---|---|---|
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://
|
Метод | Описание | |
---|---|---|
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 |
Результат | string |
public static CreateEmptyIterator ( ) : |
||
Результат |
public static CreateForLoop ( int to ) : |
||
to | int | ending point |
Результат |
public static CreateForLoop ( int from, int to ) : |
||
from | int | Start int |
to | int | End int |
Результат |
public static CreateRfc822Date ( string isodate ) : string | ||
isodate | string | |
Результат | string |
public static FetchFeedAndNormaliseToAtom ( string url ) : |
||
url | string | The external URL for the feed to fetch. |
Результат |
public static FormatIsoDate ( string isodate, string fieldNameInSettings ) : string | ||
isodate | string | The isodate. |
fieldNameInSettings | string | The field name in settings. |
Результат | string |
public static FormatIsoDateLong ( string isodate ) : string | ||
isodate | string | The isodate. |
Результат | string |
public static FormatIsoDateShort ( string isodate ) : string | ||
isodate | string | The isodate. |
Результат | string |
public static FormatIsoDateTime ( string isodate ) : string | ||
isodate | string | The isodate. |
Результат | string |
public static FormatIsoTime ( string isodate ) : string | ||
isodate | string | The isodate. |
Результат | string |
public static GetCurrentCultureName ( ) : string | ||
Результат | string |
public static GetDescendantsViaXPath ( |
||
from | ||
xpath | string | |
Результат |
public static GetDictionaryItem ( string key ) : string | ||
key | string | The dictionary key |
Результат | string |
public static GetFileExtension ( string filename ) : string | ||
filename | string | The filename. |
Результат | string |
public static GetHomeNode ( ) : |
||
Результат |
public static GetImageTag ( string imagePathOrMediaId ) : string | ||
imagePathOrMediaId | string | The image path or media id. |
Результат | string |
public static GetImageTag ( string imagePathOrMediaId, int maxWidth ) : string | ||
imagePathOrMediaId | string | The image path or media id. |
maxWidth | int | Max width. |
Результат | string |
public static GetImageTag ( string imagePathOrMediaId, int maxWidth, int maxHeight ) : string | ||
imagePathOrMediaId | string | |
maxWidth | int | |
maxHeight | int | |
Результат | string |
public static GetImageTag ( string imagePathOrMediaId, int maxWidth, int maxHeight, bool constrain ) : string | ||
imagePathOrMediaId | string | |
maxWidth | int | |
maxHeight | int | |
constrain | bool | |
Результат | string |
public static GetLinkTag ( string nodeId ) : string | ||
nodeId | string | The node id. |
Результат | string |
public static GetLinkTag ( string nodeId, string linkText ) : string | ||
nodeId | string | The node id. |
linkText | string | The link text. |
Результат | 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 |
Результат | string |
public static GetMediaPath ( int mediaId ) : string | ||
mediaId | int | The media id. |
Результат | 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. |
Результат | string |
public static GetReadableFileSizeViaBytes ( string bytes ) : string | ||
bytes | string | The bytes. |
Результат | string |
public static GetTemplateIdFromAlias ( string templateAlias ) : int | ||
templateAlias | string | |
Результат | int |
public static GetThumbnailUrl ( string imagePathOrMediaId, int width ) : string | ||
imagePathOrMediaId | string | |
width | int | |
Результат | string |
public static GetThumbnailUrl ( string imagePathOrMediaId, int width, int height ) : string | ||
imagePathOrMediaId | string | |
width | int | |
height | int | |
Результат | string |
public static GetThumbnailUrl ( string imagePathOrMediaId, int width, int height, bool constrain ) : string | ||
imagePathOrMediaId | string | |
width | int | |
height | int | |
constrain | bool | |
Результат | string |
public static MenuInclude ( |
||
ni | The node to check. | |
Результат | bool |
public static MenuTitle ( |
||
ni | ||
Результат | string |
public static ToBool ( string input ) : bool | ||
input | string | The input to be converted |
Результат | 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. |
Результат | int |
public static UrlViaNodeId ( string nodeId ) : string | ||
nodeId | string | The node id. |
Результат | string |
public static UrlViaNodeId ( string nodeId, string alternateTemplate ) : string | ||
nodeId | string | The node id. |
alternateTemplate | string | The alternate template. |
Результат | 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 |
Результат | string |