TransformationMethods Class |
Namespace: CMS.Controls
public class TransformationMethods : MacroMethodContainer
The TransformationMethods type exposes the following members.
Name | Description | |
---|---|---|
TransformationMethods |
Name | Description | |
---|---|---|
AddCurrentCategoryParameter |
Appends current category ID to given url.
| |
EnsureMaximumLineLength |
Limits line length of the given plain text.
| |
Eval |
Evaluates the item data and returns it.
| |
EvalCDATA |
Evaluates the item data and return escaped CDATA.
| |
FormatDate |
Format date without time part.
| |
FormatDateTime |
Format date time.
| |
GetAbsoluteUrl |
Returns absolute URL from relative path.
| |
GetAbsoluteUrlBySiteID |
Returns absolute URL from relative path.
| |
GetAbsoluteUrlBySiteName |
Returns absolute URL from relative path.
| |
GetAge |
Returns age according to DOB. If DOB is not set, returns unknownAge string.
| |
GetAtomDateTime |
Gets time according to RFC 3339 for Atom feeds.
| |
GetAttachmentIcon |
Returns HTML markup representing attachment icon.
| |
GetAttachmentUrl |
Returns URL of the attachment.
| |
GetBadgeImage |
Returns badge image tag.
| |
GetBadgeName |
Returns badge name.
| |
GetBlogCommentUrl |
Returns URL of the blog comment document.
| |
GetBlogCommentUrlForFeed |
Returns URL of the blog comment page with feed parameter.
| |
GetCountryDisplayName |
Returns country displayname based on its codename.
| |
GetCurrentDateTimeString |
Returns date time string according to user or current site time zone.
| |
GetCustomDateTime |
Returns date time with dependence on selected time zone.
| |
GetDate |
Returns date from the provided date-time value.
| |
GetDateTime |
Returns date time with dependence on current ITimeZone manager time zone settings.
| |
GetDateTimeString |
Returns string representation of date time with dependence on current ITimeZone manager
time zone settings.
| |
GetDocumentCssClass |
Gets page CSS class comparing the current page alias path. Returns selectedCssClass if given alias path matches the current page alias path. Otherwise returns cssClass.
| |
GetDocumentLink |
Returns a complete HTML code of the link to the currently rendered page.
| |
GetDocumentUrl |
Returns URL of specified document.
| |
GetDocumentUrlByGUID |
Returns URL of specified page.
| |
GetDocumentUrlByID |
Returns URL of specified document.
| |
GetDocumentUrlForFeed |
Returns URL of the currently rendered document with feed parameter.
| |
GetEditableImage |
Returns a complete HTML code of the image that is specified by editable image content.
| |
GetEditableImageUrl |
Gets the editable image value.
| |
GetExtension(String) |
Returns a Extension of given name (return null if specified Extension does not exist).
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
GetExtension(Type, String) |
Returns the extension by type and name. Does not cache the result. Does not cache the result.
(Inherited from MacroMethodContainer.) | |
GetExtensions |
Gets the extensions for the given type. Does not cache the result.
(Inherited from MacroMethodContainer.) | |
GetFileIcon |
Returns HTML markup representing file icon.
| |
GetFileUrl |
Returns URL of the attachment with given name.
| |
GetFileUrlByGUID |
Returns URL of the attachment with given attachment GUID.
| |
GetFileUrlFromAlias |
Returns URL of the attachment with given GUID.
| |
GetForumPostUrl |
Returns URL of the specified forum post.
| |
GetForumPostUrlForFeed |
Returns URL of the specified forum post with feed parameter.
| |
GetGender |
Returns gender of the user.
| |
GetGroupAvatarImage |
Returns group avatar image tag, if avatar is not defined returns default group if is defined.
| |
GetGroupAvatarImageByGUID |
Returns group avatar image tag, if avatar is not defined returns default group if is defined.
| |
GetGroupProfileUrl |
Returns group profile URL.
| |
GetImage |
Returns a complete HTML code of the image that is specified by node alias and attachment GUID.
| |
GetImageByUrl |
Returns a complete HTML code of the image that is specified by the given url.
| |
GetImageUrl |
Gets UI image resolved path.
| |
GetMediaFileUrlForFeed |
Returns URL of the specified media file with feed parameter.
| |
GetMemberProfileUrl |
Returns member profile URL.
| |
GetMessageBoardUrl |
Returns URL of the message board document.
| |
GetMessageBoardUrlForFeed |
Returns URL of the message board page with feed parameter.
| |
GetMethod |
Returns a method of given name (return null if specified method does not exist).
(Inherited from MacroMethodContainer.) | |
GetRSSDateTime |
Gets time according to RFC 822 for RSS feeds.
| |
GetSearchedContent |
Returns content parsed as XML if required and removes dynamic controls.
| |
GetSearchImageUrl |
Returns URL to current search result item.
| |
GetSearchValue |
Returns column value for current search result item.
| |
GetSiteDateTime |
Returns site date time according to site time zone.
| |
GetSitemapItem |
Returns sitemap XML element for specified type (loc, lastmod, changefreq, priority).
| |
GetUIImageUrl |
Gets UI image resolved path.
| |
GetUrl |
Returns URL for the specified aliasPath and urlPath (preferable).
| |
GetUserAvatarImage |
Returns user avatar image.
| |
GetUserAvatarImageByGUID |
Returns user avatar image.
| |
GetUserAvatarImageForUser |
Returns user avatar image.
| |
GetUserAvatarImageUrl |
Returns user avatar image URL.
| |
GetUserDateTime |
Returns current user date time DateTime according to user time zone.
| |
GetUserFullName |
Returns user full name.
| |
GetUserProfileURL |
Returns user profile URL.
| |
HTMLEncode |
Returns encoded text.
| |
IfCompare |
Transformation "if" statement for guid, int, string, double, boolean, DateTime
The type of compare depends on comparable value (second parameter)
If both values are NULL, method returns false result.
| |
IfDataSourceIsEmpty |
Returns nonEmptyResult if specified data source is null or empty, else returns emptyResult.
| |
IfEmpty |
Returns nonEmptyResult if value is null or empty, else returns emptyResult.
| |
IfImage |
Returns isImage value if file is image.
| |
IsCurrentDocument |
Indicates if the given page is the current page.
| |
IsDocumentOnSelectedPath |
Indicates if the page is on selected path.
| |
IsImageDocument |
Indicates if the page is an image.
| |
JSEncode |
Evaluates the item data and returns it.
| |
RegisterExtension |
Registers a Extension to the container.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisterExtensions |
Registers all the methods.
(Inherited from MacroMethodContainer.) | |
RegisterMethod |
Registers the given method.
(Inherited from MacroMethodContainer.) | |
RegisterMethodInternal(String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String) |
Registers the given method within the method table.
(Inherited from MacroMethodContainer.) | |
RegisterMethodInternal(String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String) |
Registers the given method within the method table.
(Inherited from MacroMethodContainer.) | |
RegisterMethods |
Registers all the methods.
(Inherited from MacroMethodContainer.) | |
RegisterMethods(MacroMethod) |
Registers the given methods.
(Inherited from MacroMethodContainer.) | |
RemoveDiscussionMacros |
Remove all oc of discussion macros from text.
| |
RemoveDynamicControls |
Remove all dynamic controls macros from text.
| |
SearchHighlight |
Highlight input text with dependence on current search keywords.
| |
SearchResultUrl |
Returns URL for current search result.
| |
TrimSitePrefix |
Trims the site prefix from user name(if any prefix found)
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
Extensions |
Extensions dictionary
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisteredExtensionNames |
Returns enumerable of all registered Extension names.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisteredExtensions |
Returns enumerable of all Extensions.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisteredMethods |
Returns enumerable of all methods.
(Inherited from MacroMethodContainer.) |