Click or drag to resize
TransformationHelper Methods

The TransformationHelper type exposes the following members.

Methods
  NameDescription
Public methodEnsureValueHTMLEncodeReturnType
Returns HTML encoded value if value is string and it should be encoded(it depends on value of CMSHTMLEncodeEval key in configuration file).
Public methodFormatDateTime
Format date time.
Public methodGetAbsoluteUrl(String) Obsolete.
Returns absolute URL from relative path.
Public methodGetAbsoluteUrl(String, SiteInfoIdentifier) Obsolete.
Returns absolute URL from relative path.
Public methodGetAttachmentUrl Obsolete.
Returns URL of the attachment.
Public methodGetAttachmentUrlByDocumentId Obsolete.
Returns URL of the attachment.
Public methodGetAttachmentUrlByGUID
Returns URL of the attachment.
Public methodGetDateTime
Returns date time with dependence on current ITimeZone manager time zone settings.
Public methodGetDateTimeString
Returns string representation of date time with dependence on current ITimeZone manager time zone settings.
Public methodGetFileIconClass Obsolete.
Returns font icon class for specified file extension.
Public methodGetSearchedContent
Returns content parsed as XML if required and removes dynamic controls.
Public methodGetSearchImageUrl
Returns URL to given search result item.
Public methodGetSearchValue
Returns column value for current search result item.
Public methodGetSharePointFileUrl
Gets URL for accessing file on SharePoint server.
Public methodHTMLEncode
Returns encoded text.
Public methodIf Obsolete.
If input value is evaluated as True then 'true result' is returned, otherwise 'false result' is returned.
Public methodIfCompare Obsolete.
Transformation "if" statement for guid, int, string, double, decimal, boolean, DateTime The type of compare depends on comparable value (second parameter) If both values are NULL, method returns false result.
Public methodIfDataSourceIsEmpty Obsolete.
Returns nonEmptyResult if specified data source is null or empty, else returns emptyResult.
Public methodIfEmpty Obsolete.
Returns nonEmptyResult if value is null or empty, else returns emptyResult.
Public methodIfImage Obsolete.
Returns isImage value if file is image.
Public methodStatic memberLoadTransformation
Loads the transformation template. Supports the following formats of transformation name: [Some text with macros] - Inline transformation cms.user.sometransformation - Transformation full name from database ~/SomePath/SomeControl.ascx - Path to transformation user control
Public methodStatic memberLoadTransformationFromPath
Loads the transformation from the given path
Public methodSearchHighlight
Highlight input text with dependence on current search keywords.
Public methodSearchResultUrl
Returns URL for given search result.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also