Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on April 08, 2014, 17:02:39

Title: add to browser
Post by: seadhna on April 08, 2014, 17:02:39
In Components>Search>Parameters under 'Add to Browser' I have clicked No, but the add to browser icons continue to appear in search results. What else do I need to do to hide this element?
Title: Re: add to browser
Post by: datahell on April 08, 2014, 19:53:39
This is impossible. If parameter "os_add" of component Search if is set to No (0) the "add to browser" icons are not get displayed.

Are you sure you don't confuse it with the "Open search" module?
Title: Re: add to browser
Post by: striker on April 10, 2014, 05:37:22
datahell,

I replicated the issue on my side.

I went to extensions>components>search>parameters>NO for "Add to browser". It didn't remove the browser icons.

So, what I did, I directly removed the code :

if ((int)$params->get('add_os', 1) == 1) {
         $this->addSearchProvider();
      }

Those lines are found at:

...components/com_search/views/main.html.php

After doing that, the browser icons disappeared.  :-\
Title: Re: add to browser
Post by: seadhna on April 16, 2014, 19:55:27
Thanks Striker, I have used CSS to hide the unwanted content instead - until the glitch is fixed.
many thanks.