Metadata Iframe field
The application will render into an iframe object the selected web url. In the url will be passed as query parameters the uuid and propertyGroup.
Attribute | Description | Required |
---|---|---|
label |
The text shown as label in user interface. |
true |
name |
Unique field identifier Two metadata can't have the same name. Name must be unique. The name must start with "okp:". It's a good practice to use a metadata group name as basis for the metadata field name. For example use "okg:consulting" has been used for field name "okp:consulting.iframe", changing "okg" to "okp". That helps to find out the metada group based on metadata field name. Please, use only letters, numbers and underscore: "0-9a-zA-Z_".
|
true |
url |
Set the url of the web page to be load in the iframe. There're set two parameters to the request:
If your url value is http://www.openkm.com the url called into iframe will be http://www.openkm.com?uuid=03ced012-63cc-4feb-ac26-bb12ded86f73&propertyGroup=okg:consulting It's a good practice the URL starts with http:// or https:// |
true |
width |
The width of the HTML element. It is advisable to set the attribute width to 100% so that it is adjusted to the screen |
false. |
height |
The height of the HTML element. |
false. |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 3.10//EN"
"http://www.openkm.com/dtd/property-groups-3.10.dtd">
<property-groups>
<property-group label="Consulting" name="okg:consulting">
<iframe label="Iframe label" name="okp:consulting.iframe" url="http://localhost:8080/openkm" width="100%" height="300px"/>
</property-group>
</property-groups>