The Smartlet macro is uniquely used in Smartlet (SML) translations, and provides an environment to build so called 'Smartlets', Ajax-enabled web page components.
The Smartlet macro is used to create a public interface for state to travel between server and client,
and to handle the dual rendering (translation phase, ajax callback phase).
The Smartlet macro is used to create a public interface for state to travel between server and client,
and to handle the dual rendering (translation phase, ajax callback phase).
Syntax
Smartsite SXML | Copy Code |
---|---|
<se:smartlet> </se:smartlet> |
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
AjaxError | String |
RawData
|
Sets the code to execute when an error occurs while in ajax callback mode. |
DisplayName | String |
RawData
|
Sets sXML to determine the display name of the Smartlet. The display name is used in the SmartletListInput. |
MapLinkUrls | Boolean | - |
Set this parameter to true to automatically map urls created using Smartlet.Link() as Url Parameters (provided that the item in which the Smartlet is rendered supports Url Parameters). |
Properties | Collection | - | Gets the full list of properties of the Smartlet. |
Xml | String |
RawData
IsRequired Trim |
Sets the inner Xml of the Smartlet module. |
Shared Parameters
Local Viper Methods
Viper | Extension | Description |
---|---|---|
This.ClearForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
This.SetForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |