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.

Arguments:

$refresh (BOOL) optional - defaults to false

Returns:

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

Example:

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

Example 2:

<?php 
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: info@dotadmin.com