Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Global search fields displaly per module
#1
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?
Reply
#2
https://corebos.com/documentation/doku.p...st_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.
Joe
TSolucio
Reply
#3
(12-08-2020, 12:12 PM)joebordes Wrote: https://corebos.com/documentation/doku.p...st_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...cord=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
Reply
#4
fixed it here: https://github.com/tsolucio/corebos/comm...4afb0d7651

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.
Joe
TSolucio
Reply
#5
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?modul...cord=43464

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


Attached Files Thumbnail(s)
       
Reply
#6
see if these two commits do the trick

https://github.com/tsolucio/corebos/comm...44adf5c298
https://github.com/tsolucio/corebos/comm...50ff2c487b
Joe
TSolucio
Reply
#7
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)
Reply
#8
it is the fieldname: parent_id
set the linkfield directive
Joe
TSolucio
Reply
#9
Thank you it work!
Reply
#10
:-)
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)