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