InvPublicController is the controller used by the public website when displaying a dotAdmin content page. When writing code for website templates, $this refers to an instance of the InvPublicController class. The methods and properties can be accessed therein.
<html> <body> <title><?php echo htmlspecialchars($this-document->getValue('document_title')) ?></title> </body> <h1><?php echo $this-document->getHTML('document_title') ?></h1> <?php echo $this-document->getHTML('document__content') ?> <?php $nav = $this->getNodeNav($this-document->currentnode->) </html>
Returns an InvNav object of $id, or null on error.
Returns an InvNodeNav object for node $id, or null on error.
$params may contain an array of conditions by which to filter the nav results, eg:
array( 'tags'=>array('tag1,'tag2'),'documenttype_id'=>array(1,2) )
Return only documents tagged with "tag1' or 'tag2' and of documenttype 1 or 2.
If $params['recursive'] == true the nav will fetch not just direct children of the current nav, but any child anywhere in the node hierarchy within the current node.
When fetching a node nav, specify $params('haschildren' => true) to only get back nodes which have content pages within them.
Returns an InvNodeNav object for node whose index document_path is $path, or null on error.
$params may contain an array of conditions by which to filter the nav results. Functionally identical to the $params argument passed to getNodeNav()
Creates a resized image based upon the inputs sent and returns the URL of created image (eg: '/myimage.100_100_crop_FFFFFF.jpg').
Detailed examples of usage can be found here.