Syntax of the field in edit mode
Just a single file name loads the file from the library:
With the tag -site- loads the file from the library:
<Root Web of Site Collection>/modulerixAjaxContent
With the tag -root- loads the file from the library:
<Root Web of Root Site Collection>/modulerixAjaxContent
With a leading / or http the file is loaded from the specified url.
A additional object (JSON-format) to specify tokens with values you want to replace before the content is injected.
With the tag -noencode- on a token value the string will not be html encoded (be careful!).
weburl The url to the current web
webliburl The url to the library of the current web
siteurl The url to the current site collection
siteliburl The url to the library of the current site
rootliburl The url to the library of the root site
Each of these properties can also be used as a string replace token in your files. Sample: Each string "-weburl-" in your file will get replaced with the url of the current web.
Tutorial (PrettyPhoto Gallery Sample)
Demo (PrettyPhoto Gallery Sample)
If this solution is not exactly what you are looking for, we can create your solution as per your requirement.