Page 1 of 1

Tuning the searchindex.js

Posted: Thu Apr 15, 2021 3:08 pm
by Adrian
Helo,

is there a possibility to tune the search index at the creation of the file?

I have made the experience that for some users the UI of a web site is not clearly enough.
So I want to tune a little the search index (the file searchindex.js).

I have discovered that with "<b>, </b>, <br>" in the searchindex.js, I can realize what I want.

My Problem is that every time I make a change in the code, I must change again the file searchindex.js.

How can I made the changes at the time of the creation of the file?

Than you and many regards, Adrian

Re: Tuning the searchindex.js

Posted: Thu Apr 15, 2021 3:20 pm
by Pablo
There is currently no option to 'tune' the content of this file.

Re: Tuning the searchindex.js

Posted: Thu Apr 15, 2021 4:08 pm
by Adrian
Hello Pablo and thank you.

Another problem: if I attach to an object a <html> property, I can find this Css style in the searchindex.js!!

I don't think this is intentional, isn't it?

Regards, Adrian

Re: Tuning the searchindex.js

Posted: Thu Apr 15, 2021 5:16 pm
by Pablo
I need to see what you have done to say anything meaningful about this.

Re: Tuning the searchindex.js

Posted: Fri Apr 16, 2021 7:15 am
by Adrian
Helo Pablo,

on the site rogarema.net, if you search in menu for "z-index" or "layer" you will see parts of the css instructions.

You can open directly the file http://www.rogarema.net/searchindex.js and if you search here for "z-index" or "layer" you will see....

What I have do: on the master page I have a modal layer where I have placed the site search and the menu. The modal layer I trigger with an hamburger icon.
The modal layer has a "close" icon where I trigger the modal layer to close.

That all.

Best regards, adrian

Re: Tuning the searchindex.js

Posted: Fri Apr 16, 2021 7:47 am
by Pablo
Sorry, but I need a demo project so I can see all the settings.

Please see this related FAQ:
viewtopic.php?f=10&t=82134

Re: Tuning the searchindex.js

Posted: Fri Apr 16, 2021 9:07 am
by Adrian
Hello Pablo,

here the path: http://medialight.de/temp_pablo.zip

Re: Tuning the searchindex.js

Posted: Fri Apr 16, 2021 9:21 am
by Pablo
In object 'Menulayer' you have added invalid custom code.
"inside tag" can only be used to insert attributes. If you add other tags then this will break the structure of the HTML.
Please remove

Code: Select all

<style>
#Menulayer_panel
{
z-index: 100;
}
</style>

Re: Tuning the searchindex.js

Posted: Fri Apr 16, 2021 9:24 am
by Adrian
OK Pablo, thank you

Regards Adrian