file Function

Returns the URL to a specified file and executes the callback. The callback should recieve the argument "data", which contains the response body in "data.content".

Summary

ElementFunction
ReturnsObject

Arguments

pathString[required] The path to the file from "/pagetype/content/files/".
callbackFunction[required] The callback function.

Example

PageType.file('images/holiday.jpg',callback);
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/ptorg/public_html/pagetype/content/pages/en/docml.viewer.php