Elxis CMS Forum

Extensions => Templates => Topic started by: kyomar on August 14, 2019, 08:59:33

Title: five template - search engine display [solved]
Post by: kyomar on August 14, 2019, 08:59:33
Hi, I cannot get rid of the search form at the top of the page. I followed the instructions in admin and chose no search engine "-select-" but after safe it always shows "content" again. Any advise would be welcome. Nice template by the way. Thank you!
Title: Re: five template - search engine display
Post by: webgift on August 15, 2019, 18:56:53

As far as i remember it's a module. Can you please share a link with me to verify?
Title: Re: five template - search engine display
Post by: datahell on August 15, 2019, 20:08:02
Elxis when a configuration parameter is empty returns the default value. The default value in this case is "content", this is why it loads you the "content" search engine when you select no engine. To change this behaviour do the following.

Open file includes/libraries/elxis/parameters.class.php
go to line 82
Change this:
return ($this->params->$key === '') ? $default : $this->params->$key;
to this:
return $this->params->$key;

Save the file and you are ready. It will work now as you want.

Tip for developers: To avoid this behaviour avoid the default value to be empty (set it to "none" or something like that).
Title: Re: five template - search engine display [solved]
Post by: kyomar on August 16, 2019, 03:54:23
Thanks a lot datahell, that did the trick. As usual outstanding support from the elxis team. Now we only have to solve the iframe problem ;-)