Channel Computing - Software, Web development and IT Consultancy in Cornwall.  
 
I.T. Web & Marketing for business  

 

 
 
 

Configuring the DocMan document manager component.

 

Introduction:

The Docman document management extension is a useful and powerful Joomla Add-on. Unfortunately it is let down by inadequate documentation and support information in its forums, leading to large numbers of frustrated users desperately searching the help forums for information on how to configure DocMan so it works.

This article is to assist developers to get up and running with the Docman component, giving some relatively straightforward hints based on our own discoveries at Channel Computing while implementing the product on client sites.

Joomla and Docman Versions:

This information refers specifically to use of Joomla 1.0.12 stable release, and Docman component downloaded in docmanV13_RC_2.zip, Version 1.3 RC2.

Assumptions:

The assumption is that you have a functional Joomla 1.0.12 installation on a web server, and have installed DocMan 1.3 RC2 using the Joomla Administrator's Component installer. In the administrator module you can now navigate to Components / Docman, and configure the Docman component.

CMS and web development by Channel Computing

Tips:

1. Docman keeps crashing

A lot of users have an issue with this version of Docman crashing, and the most usual fix is well documented in some of the Docman forums. All you have to do is navigate to the Docman/Joomla php file [\components\com_docman\themes\default\themeconfig.php]. Edit the file and look for the line: "var $details_homepage = "1"; You will see there are two versions of this line, and one of these must be deleted or commented. This usually solves the problem.

CMS and web development by Channel Computing

2. I can't start using the DocMan component.

In the Docman Manager in the Joomla Administrator module you should create one DocMan category, upload one file (often a PDF document from your hard drive), and using that file create one DocMan 'document'. This is all the content you need to get started.

Now you need to add the component item to your menu. In the Joomla Administrator backend go to Menu, pick a menu - probably mainmenu, list the items in that menu. Select New to create a new menu item. Select 'Component' on the top right of the first screen, and DocMan in the components list of the second. Save the menu item, and from you main menu you should now be able to navigate to the DocMan component, and see your documents available for download.

CMS and web development by Channel Computing

3. Want to view the DocMan document thumbnail image instead of the PDF icon.

By default Docman allows you to display an icon by each document. However when you set up a document you have already added an image thumbnail, which might be a Jpeg of the first page of your document, for example. It seems a great waste to have set up a document thumbnail, and then not use it in the list. If you want to have this image displayed instead of the PDF icon, you can do a quick dirty hack to the DocMan/Joomla code to display the thumbnail. The file to edit is: [\components\com_docman\themes\default\templates\documents\list_item.tpl.php]. The lines to change are in CASE 1 of the switch statement (looks like it should be using Case 2 but you can look into that). You need to change the code to:

if ( $this->doc->data->dmthumbnail ) {
/* Altered by Channel Computing Limited to display document thumbnail image*/
?><img src="<?php echo $this->doc->paths->thumb ?>" width="100" height="130" border="0" alt="

All I did here was manually set the size of the thumbnail required using the width and height attributes of the image in the code.

I haven't bothered to make this configurable, that task can be for someone else. You may want to look in the DocMan config files like: [\components\com_docman\themes\default\themeConfig.php] to find a cleaner way of making this change, but I didn't have time when I was doing it, and this fix works well enough.

CMS and web development by Channel Computing

4. Docman file and directory Permissions.

When DocMan gets installed it often creates problems with file and directory permissions. You need to make several directories writable to allow Docman to function properly. The most important is the dmdocuments directory itself, for which you should change the permissions to 777, or something similar at least during the development phase. Some recommend 707, I doubt it makes any difference. Sometimes DocMan actually locks file permissions so they cannot be changed. A couple of work rounds for this are: Ask your hosting provider to sort out the permissions problem. One person in the forums got around it this way. Another is to rename the offending docman directories to something else, FTP them back to your local PC, set the permissions there to writable, and FTP them back to the original directory names in your Joomla installation. Not enough of an APACHE / Linux / FTP guru to know exactly what this is about, but its something to do with setting the owner of the files. The main problem with this approach is that you end up with the old Docman files remaining in your installation, taking up space for ever. This item came from the DocMan help forums, and I'm just relating it here for your reference.

CMS and web development by Channel Computing

5. DocMan and OpenSEF Joomla extensions.

We use OpenSEF with all our projects, and initially I thought there was a problem with DocMan and OpenSEF. However once these changes were made DocMan and OpenSEF seem to have worked well together. The principal problem was the link from DocMan pages to the 'Documents Home' page breaking, and displaying a message 'You don't have permissions to view this page'. This was fixed by puttint the DocMan component link on the main menu (Item 2 above).

CMS and web development by Channel Computing

That's all folks.

OK that's all we have so far. Frankly the documentation and support of Docman is a joke, but the component is quite useful, and these three little tips made it quite workable for us. Good luck, and please link to this page if you think it will help others. I know this should go on a Joomla Forum at some point, and at some point we'll get around to it.

Assistance:

If you would like the assistance of Channel Computing with the design, development of a Joomla or other web CMS system, databases and software, please contact Channel Computing using our enquiry form.

 

 

Free Stuff!
We're put a whole new section on the site showing our users where to get the best software and services on-line, including a page on all the best FREE software that we know about.
read more >
Content Management.
This is where your web site can easily be updated by yourselves, without needing an expesive developer to do it for you. Channel Computing specialise in providing cutting edge 'CMS' Systems.
read more >
e-commerce
is booming, and if you haven't started using it you must be asking whether you should? Talk to us to learn what the options are - it won't cost you anything!
read more >
PPC Advertising
PPC Advertising and on-line marketing. The biggest thing on the web, one of the world's greatest growth industies..
read more >