DOCMan; Removing "Download", "View" & "Details" Buttons

Go to /components/com_docman/themes/default/templates/documents/tasks.tpl.php

Replace everything on line 37 and below with this code:

foreach($this->doc->buttons as $button) {  
$popup = ($button->params->get('popup', false)) ? 'type="popup"' : '';
$attr = '';
if($class = $button->params->get('class', '')) {  
$attr = 'class="' . $class . '"';
}
$skip = array("Download","View","Details");  // <-- add list of buttons
if (in_array($button->text,$skip)) CONTINUE; // <-- skip "echo" if in list    ?><li <?php echo $attr?>>  
<a href="/<?php echo $button->link?>" <?php echo $popup?>>
<?php echo $button->text ?>
</a>
</li><?php
}

 

You might also want to remove that annoying white space left off. To do this go to:

/components/com_docman/themes/default/css/theme.css

Replace line 177-185 with this:

.dm_taskbar {

height: 0px;  
padding-bottom:0px;  
margin-bottom:0px;  
/*border-bottom: 1px solid #bbb;*/
font-family: arial;  
list-style-type: none;  
}