DOCman 1.4 unable to download document directly from search

Discuss the development and implementation of Joomla! components here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
jumbopeanuts
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Apr 03, 2010 9:44 am

DOCman 1.4 unable to download document directly from search

Post by jumbopeanuts » Sun Jan 13, 2013 11:38 pm

Hi
i have Docman 1.4 component installed on my site. When I run a search for the document name on the frontend, the search results links do not allow me to download the actual document. This is very annoying, as I need to manually navigate category to actually download the document I was searching for.

Looking at the source code of the page, it appears that DOCMAN is not including the HREF of the document path, when rendering the search results

PAGE URL: index.php?option=com_docman&task=search_result&Itemid=64

Code: Select all

<a class="dm_name">Instructions To Delete Incorrect Client Record            <script language="javascript" type="text/javascript">
      		<!-- <![CDATA[
      			function showTooltip109() {
      				return overlib('<div id=dm_tooltip><table summary=todo cellspacing=0><caption>Details for<em>&nbsp;Instructions To Delete Incorrect Client Record</em></caption><col id=prop /><col id=val /><thead><tr><td>Property</td><td>Value</td></tr></thead><tbody><tr><td>Name</td><td>Instructions To Delete Incorrect Client Record</td></tr><tr><td>Description</td><td></td></tr><tr><td>Filename</dt><td>Instructions to delete incorrect client record.doc</td></tr><tr><td>Filesize</dt><td>187.5 kB</td></tr><tr><td>Filetype</td><td>doc&nbsp;&nbsp(Mime Typeapplication/msword)</td></tr><tr><td>Creator</td><td>admin</td></tr><tr><td>Created On:</td><td>09/23/2008 14:47</td></tr><tr><td>Viewers</td><td>Everybody</td></tr><tr><td>Maintained by</td><td>Editor</td></tr><tr><td>Hits</td><td>22Hits</td></tr><tr><td>Last updated on</td><td>07/12/2011 17:14</td></tr><tr><td>Homepage</td><td></td></tr></tbody></table></div>', CAPTION, '', ABOVE, RIGHT, WIDTH, 320);
      			}
      		// ]]> -->
    		</script>
<span class="dm_link_tooltip" onmouseover="javascript:showTooltip109()" onmouseout="return nd();"><img src="http://intranet/components/com_docman/themes/default/images/icons/16x16/tooltip.png" alt=""/></span>
</a>

However if I navigate to the actual category where the document resides, the HREF appears;


PAGE URL: index.php?option=com_docman&task=cat_view&gid=45&Itemid=64

Code: Select all

<a class="dm_name" href="http://intranet/index.php?option=com_docman&task=doc_download&gid=109&Itemid=64">Instructions To Delete Incorrect Client Record            <script language="javascript" type="text/javascript">
      		<!-- <![CDATA[
      			function showTooltip109() {
      				return overlib('<div id=dm_tooltip><table summary=todo cellspacing=0><caption>Details for<em>&nbsp;Instructions To Delete Incorrect Client Record</em></caption><col id=prop /><col id=val /><thead><tr><td>Property</td><td>Value</td></tr></thead><tbody><tr><td>Name</td><td>Instructions To Delete Incorrect Client Record</td></tr><tr><td>Description</td><td></td></tr><tr><td>Filename</dt><td>Instructions to delete incorrect client record.doc</td></tr><tr><td>Filesize</dt><td>187.5 kB</td></tr><tr><td>Filetype</td><td>doc&nbsp;&nbsp(Mime Typeapplication/msword)</td></tr><tr><td>Creator</td><td>admin</td></tr><tr><td>Created On:</td><td>09/23/2008 14:47</td></tr><tr><td>Viewers</td><td>Everybody</td></tr><tr><td>Maintained by</td><td>Editor</td></tr><tr><td>Hits</td><td>22Hits</td></tr><tr><td>Last updated on</td><td>07/12/2011 17:14</td></tr><tr><td>Homepage</td><td></td></tr></tbody></table></div>', CAPTION, '', ABOVE, RIGHT, WIDTH, 320);
      			}
      		// ]]> -->
    		</script>
<span class="dm_link_tooltip" onmouseover="javascript:showTooltip109()" onmouseout="return nd();"><img src="http://intranet/components/com_docman/themes/default/images/icons/16x16/tooltip.png" alt=""></span>
</a>

i have tried looking at the the code, but cannot understand how to add the (DOWNLOADLINK) HREF to the search results rendered to the screen

Any ideas?

Locked

Return to “Components”