Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
IOS Hotels
and
IOS Rentals
online booking systems for Elxis CMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Templates
(Moderators:
Coursar
,
ks-net
) »
five template - search engine display [solved]
« previous
next »
Print
Pages: [
1
]
Author
Topic: five template - search engine display [solved] (Read 6493 times)
kyomar
Full Member
Posts: 158
five template - search engine display [solved]
«
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!
«
Last Edit: August 16, 2019, 03:52:31 by kyomar
»
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: five template - search engine display
«
Reply #1 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?
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
datahell
Elxis Team
Hero Member
Posts: 10356
Re: five template - search engine display
«
Reply #2 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).
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
kyomar
Full Member
Posts: 158
Re: five template - search engine display [solved]
«
Reply #3 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 ;-)
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Templates
(Moderators:
Coursar
,
ks-net
) »
five template - search engine display [solved]