Method: getIndexDocument([refresh])

Get a document file object representing the document index of this node.

Lazy loaded and cached in the object. If $refresh == true, the object will reload the document object from the database.


$refresh (BOOL) optional - defaults to false


OBJECT - document object for the index document of this node.


$indexpage = $this->document->currentnode->getIndexDocument();

Example 2:

if($indexpage = $this->document->currentnode->getIndexDocument()){
<li><a href="<?php echo $indexpage->getLink() ?>"><?php echo $indexpage->getHTML('document_title') ?></a></li>
<?php } ?>

Contact Us

Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: