Skip to main content
Skip table of contents

XML Editor - Image widget

The Image widget of the XML Editor allows to download images or icons via URL. For example: censhare REST interface. 

Introduction

Images can be referenced in the Image widget via a REST URL to a censhare resource, for example an asset file or an icon. This is the preferred way for images or icons to be embedded in dialogue definitions.

With this feature it is, for example, possible to display icons or previews anywhere in the user interface and the metadata.

Configuration

Note that if a protocol is indicated, for example, "http://…"..., then the specified URL is loaded unmodified. Otherwise, the URL is marked with the prefix REST and should therefore start with, for example, "assets/asset/id..." . 

Example 1

Representation of the small asset preview. The image is loaded asynchronously.

XML
<xe:image url="=:concat('censhare:///service/assets/asset/id/', asset/@id, '/storage/thumbnail/file')" height="150"/> 


Example 2

Showing an icon. The icon is loaded synchronously.

XML
<xe:image url="censhare:///service/resources/icon/assettype-adobe-pdf/iconset/default/background/bright/minsize/ 128/file" asynchronous="false"/>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.