[Vtigercrm-developers] How to extend feature such as Global Search without core modifications ?

Alan Lord (News) alanslists at gmail.com
Fri Feb 12 07:59:48 GMT 2016


This is fairly easy really,


They way we are doing it is like this but there might be other ways too.

You do it the same way you extend/override _any_ of the Javascript 
classes in vtiger.

i.e.

> Vtiger_Header_Js("MyCustomSearchModuleSearch_Header_Js",{},{
>
>     basicSearch : function() {
>     	return false;
>     },
> 	
> });
>
> Vtiger_BasicSearch_Js("MyCustomSearchModuleSearch_BasicSearch_Js",{

...

Load your JS class using HEADERSCRIPT definition in vtiger links


HTH

Al


On 12/02/16 07:06, Preexo wrote:
> Big +1 for this! Really good idea, it would be so great to see that working!
> Unfortunately I have no idea how to override the static getSearchResult
> method properly without any core hacks... :(
> I would add another search input field to the DOM and hide the old one with
> some JavaScript. Then write your own AJAX function in your global search
> module.
>
> Quite sad to see zero feedback on this. Tells a bit about how open the
> vtiger community actually is. In fact there is a paid module which offers
> the global search already.
>
> Anything else you need help with this? Will you put it on code.vtiger.com?
>
>
>
> --
> View this message in context: http://vtiger-crm.2324883.n4.nabble.com/How-to-extend-feature-such-as-Global-Search-without-core-modifications-tp18384p18399.html
> Sent from the vtigercrm-developers mailing list archive at Nabble.com.
> _______________________________________________
> http://www.vtiger.com/
>


-- 
Libertus Solutions
http://www.libertus.co.uk



More information about the vtigercrm-developers mailing list