|
|
The SmartletPreset macro can be used inside the Smartlet Preset contenttype to create presets for smartlets.
Syntax
| Smartsite SXML |
|
|---|---|
<se:smartletpreset /> |
|
Parameters
| Name | Data Type | Properties | Description |
|---|---|---|---|
| Cacheable | Boolean | - | Set Cacheable to true to allow the preset to be cached. If the current preset inherits from a preset that isn't cacheable, the current preset will not be cacheable either. |
| DisableSmartlet | Boolean | - | Set to true to disable rendering for the smartlet that uses this preset. |
| DisplayName | String |
MustBeAttribute
|
The display name for the preset. |
| Inherit | Locator | - | A reference to a base preset. Settings from the base preset can be overriden in the current preset. |
| Settings | Collection |
Default
|
Collection of parameters for the smartlet. |
| Smartlet | String |
MustBeAttribute
|
The smartlet on which the current preset works. |
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. |