All questions about EDocman extension

How to modify EDocman search module, to make Document Extra Fields searchable?

  • Kreshna Aryaguna
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #152055 by Kreshna Aryaguna
Hello,

I just have deployed EDocman 1.22.0 for a web document management solution that uses quite a lot of Document Extra Fields . I have edited the proper document.xml file in  <root>/administrator/components/com_edocman/model/forms/ location.

Then I activated EDocman search module on the website. Much to my dismay, it turned out EDocman search module can only search document title and description, but not document extra fields.

But then I found this post , where an EDocman user modified the EDocman search plugin (/plugins/search/edocman/edocman.php), to make it able to search indexed content, by modifying the SQL query inside that file. His codes are as follows:
Code:
// /joomla/plugins/search/edocman/edocman.php : 101 - 103// replace with $query = ' SELECT a.id, 0 AS cat_id, a.title AS title, a.short_description, a.description AS text, a.indexed_content, created_time AS `created`, ' . $db->Quote($section) . ' AS section, "1" AS browsernav FROM #__edocman_documents AS a WHERE (' . $where . ') AND (a.user_ids = "") AND a.published = 1 ORDER BY ' . $order ;

So, the questions are:
  1. What file such I edit to modify EDocman search module instead of the search plugin?
  2. What database columns should I include in the modified SQL to include documents extra fields in the search?
  3. Are there better, simpler ways to achieve what I want?

To be honest this is my very first experience with EDocman, but I like to tinker.

Thank you very much.

 

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #152058 by Mr. Dam
Hi Kreshna,
1. If you want to modify search function of component, you can modify function: _buildQueryWhere in file: [root] -> components -> com_edocman -> model -> list.php
2. Edocman doesn't support option to search through custom extra fields
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam