Extensions > Templates

five template - search engine display [solved]

(1/1)

kyomar:
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!

webgift:

As far as i remember it's a module. Can you please share a link with me to verify?

datahell:
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).

kyomar:
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 ;-)

Navigation

[0] Message Index

Go to full version