Reference library

Article number: 305409

A note on referencing assets

In Sitekit CMS 11 we have introduced end-to-end encryption to the Admin interface. End-to-end encryption provides a secured environment in which you can develop, edit and organise content, manage user permissions and site assets.

Where absolute URLs (e.g. http://www.domain.com/images/image.jpg) are used in a template, variable block or content item the web browser will display a message, pop-up or dialog warning to Admin users that the site contains mixed, or insecure content

To avoid browser warnings and Admin user confusion, and maintain the secured Admin system, only relative URLs (e.g./images/image.jpg) or magic word syntax (:::assetfullpath.shortcutid-[shortcutid]:::) should be used whenever referencing an asset. This applies to content editing and website development. An additional benefit of relative URLs is that they will always appear as hosted from the site - even if a domain name is changed or an asset is used by multiple domain names associated with the Sitekit CMS site.

You can easily find the magic word to use for any asset by right-clicking it on the asset tree, selecting 'Asset Properties' and copying the 'Magic URL Path'.

Related questions