Hi,
I use table layout for the documents view, but I wish to have "view" button instead of "download" button.
Using this code from the default layout give me an PHP error
Code:
<?php $viewUrl = JRoute::_('index.php?option=com_edocman&task=document.viewdoc&id='.$item->id.'&Itemid='.$this->Itemid) ; ?>
<a href="<?php echo $viewUrl; ?>" target="_blank" class="<?php echo $btnClass; ?>">
<i class="edocman-icon-eye-open"></i>
<?php echo JText::_('EDOCMAN_VIEW'); ?>
</a>