Link, Path and URL Functions

These functions generate links to content items, and links to your plugin in other modes.

You can use syntax of the form:

$this->functionName()

to call a link, path or URL function from anywhere within your Plugin's methods.

AJAXLink()

This generates a link to your handleAJAX() method.

linkToItemAnchor()

Generates attributes for a hyperlink to a Content Item.

linkToItemAnchorAndJS()

A shortcut function for calling linkToItemAnchor() and linkToItemJS().

linkToItemJS()

Generates JavaScript code that will redirect the viewer to a different Content Item.

moduleDir()

A shortcut to the core function with the same name, this teturns the relative path to your Module's directory. (I.e. modules/your_module_name/)