CoreBOSBB
Global search fields displaly per module - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: Global search fields displaly per module (/showthread.php?tid=2048)



Global search fields displaly per module - addady2 - 12-08-2020

Hi,

I want to modify the fields that display in specific module when using global search.
Didn't find any Global Variable for that.

Back in the Vtiger 5.x days I use to modify Modules/Home/UnifiedSearch.php and change the select query.
Dose is still apply?


RE: Global search fields displaly per module - joebordes - 12-08-2020

https://corebos.com/documentation/doku.php?id=en:adminmanual:businessmappings:list_columns

> If you need to modify the columns that appear in the Global Search for the module, create a section where parentmodule is set to Home.


RE: Global search fields displaly per module - addady2 - 12-09-2020

(12-08-2020, 12:12 PM)joebordes Wrote: https://corebos.com/documentation/doku.php?id=en:adminmanual:businessmappings:list_columns

> If you need to modify the columns that appear in the Global Search for the module, create a section where parentmodule is set to Home.

I follow the doc, and fail to make it work from the Global search. It work fine from other module.
Reproduce the problem in Corebos demo system.

My BM HelpDesk_ListColumns link:
http://demo.corebos.com/index.php?module=cbMap&action=DetailView&viewname=0&start=&record=43464&;

When:


Quote:...
<relatedlists>

   <relatedlist>
   <module>Account</module>
...
Work fine from account, show the fields I selected.

But when:

Quote:<relatedlists>

   <relatedlist>
   <module>Home</module>
In Global search it show all the default fields of HelpDesk module


RE: Global search fields displaly per module - joebordes - 12-09-2020

fixed it here: https://github.com/tsolucio/corebos/commit/32d95f30d9d64a63f451ff7cd047784afb0d7651

It is now Utilities module. We moved the global search to utilities because we had some users deactivating Home and breaking the Global Search which was tied to the Home page. We moved it to the utilities directory which is where it should be, not related to Home but we didn't update the code accordingly. I updated the demo and it works as expected.


RE: Global search fields displaly per module - addady2 - 12-10-2020

Thank you its display the fields, but there is a new problem.

No all the fields content apper.
The same BM to module accounts show the content.

BM link
https://demo.corebos.com/index.php?module=cbMap&parenttab=ptab&action=DetailView&record=43464

Attach 2 screen shut from account and from the global search.


RE: Global search fields displaly per module - joebordes - 12-12-2020

see if these two commits do the trick

https://github.com/tsolucio/corebos/commit/e575d25300feabca5700ddaf17d45644adf5c298
https://github.com/tsolucio/corebos/commit/81f7b851e921f75c5cddaa129e7f0550ff2c487b


RE: Global search fields displaly per module - addady2 - 12-14-2020

Thank you it solve most of the problem.

Still have two issue:

1)
It don't display the "Related To"
I use:

Code:
<label>Related To</label>
      <name>parent_id_display</name>

2)
The Ticket tittle in the search result is not click able (not a link to the ticket)


RE: Global search fields displaly per module - joebordes - 12-14-2020

it is the fieldname: parent_id
set the linkfield directive


RE: Global search fields displaly per module - addady2 - 12-14-2020

Thank you it work!


RE: Global search fields displaly per module - joebordes - 12-14-2020

:-)