link Function

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

Summary

ElementFunction
ReturnsObject

Arguments

nameString[required] The name of the page.
callbackFunction[required] The callback function.

Example

PageType.link('about-us',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