Skip to main content
Skip table of contents

CsResourceModel

A model to extend the relative path resource with the current servlet path of the current page request.

implements: hash, scalar
bundle: online channel standard (oc)
since 5.2.0
A model to extend the relative path resource with the current servlet path of the current page request.

[used as scalar] ↦ String
since 4.2.0
Returns Extends the relative path resource with the current servlet path of the current page request. If the path points to a static resource in the sense of the Online Channel, a part will be added, which depends on the content of the storage item.

Defined hash keys

content ↦ String
since 5.3.1
Returns the content or null (if it's of mimetype text as String (UTF-8), otherwise Base64 encoded). Attention: increases memory consumption during page creation.

dataUrl ↦ String
since 5.3.1
Returns the content encoded as base64 data url. Attention: increases memory consumption during page creation.

isAvailable ↦ Boolean
since 5.2.0
Returns if the resource is available

mimetype ↦ String
since 5.3.1
Returns the mimetype or null

sha256 ↦ String
since 2019.2.4
Returns the sha-256 or null

JavaScript errors detected

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

If this problem persists, please contact our support.