Documentation
Web Content
Require: Symcon >= 8.0
Parameter
Information about the visual properties and meanings of the parameters can be found in the Object Presentation.
| Name | Type | Parameter | Description |
|---|---|---|---|
| PRESENTATION | String | The ID of the presentation | VARIABLE_PRESENTATION_WEB_CONTENT {9DE1D610-5106-97FB-714D-1AADEDF8377A} |
| HTML_TYPE | Integer | Display Type | 0: HTML Inhalt, 1: Webseite |
| PADDING | Boolean | Remove Padding |
Examples
// When registering a variable for PHP modules
// The variable value is treated as a link. The website is displayed without padding in the tiles.
$this->RegisterVariableString('Website', 'Website', [
'PRESENTATION' => VARIABLE_PRESENTATION_WEB_CONTENT,
'HTML_TYPE' => 1 /* Website*/,
'PADDING' => true,
]);
// For existing variables via script
// The variable value is treated as a link. The website is displayed without padding in the tiles.
IPS_SetVariableCustomPresentation(12345, [
'PRESENTATION' => VARIABLE_PRESENTATION_WEB_CONTENT,
'HTML_TYPE' => 1,
'PADDING' => true,
]);