Content Delivery Network (CDN)

Using Assets in MADL and CSS

CDN locations are stored by an Organisation. These CDN locations can be accessed across multiple server instances. i.e. Assets stored in a CDN location in d.blinkm.co can also be used on blinkm.co.
This makes the exporting of answerspaces from one server instance to another easier as the assets are available to all BMP instances

There is no need to use the full path of the asset such as ‘/images/answerSpaceId/asset.ext’. Simply just type the name of the asset and its type extension - ‘asset.ext’. The Platform will automatically find the location of the file.

The file should exist in the default CDN location of answerSpace configuration.

You should never use an absolute path to an asset as this will break when you export / import answerspaces.

Example 1 - in mADL

<img src='circle.png' alt='Circle' />

Example 2 - in CSS

element { list-style-image: url(circle.png); list-style-type: circle; }

Even if the css file is stored within the Assets manager, the Platform will create the relative path automatically.

One caveat: If the stylesheet is being used from an external server you need to use the full url. A way to find that url is right link on the image in the CDN assets window and (in chrome) "Copy Image Address".