Disable Global Search in HTML5 2.1
Is there anyway to disable the Global Search for HTML5 v2.1?
-
The easiest way to "disable" search is to remove the banner, which includes the search bar, in your viewer settings.
Other than that, you could try to run a startup workflow that uses the DestroyView command to removed the SearchView.
0 -
You can navigate to your Desktop.json.js file at this location: "\(file://\\<ServerName\c$\Program) Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\<SiteName>\Viewers\<HTML5ViewerName>\VirtualDirectory\Resources\Config\Default
Find "id": "SearchView".
Under this SearchView Module, turn the "true" to "false" for the visible tag. This will disable the Global Search from ever appearing in the banner.
0 -
This works for me successfully for both Desktop and Tablet, but even with
"id": "SearchView",
"visible": false,set in Handheld, it still shows up. Any ideas? I'm at GVH 2.4. Thanks!
Cassandra
0 -
I'd still love to get an answer on this for handheld - anyone? 0 -
Cassandra, I noticed this same behavior with my HTML5 2.5 viewer. I ended up just deleting the SearchView code from the Handheld.json file and the search bar finally disappeared in the viewer. Of course, I copied the code to a text file and made note of where its placement was in case I finally take the time to perfect the Global Search settings for all of my attribute fields! I hope this helps... remember to back up your files first!
Andrew0 -
You can also use css to remove the global search box. In the folder \Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\<SiteName>\Viewers\<HTML5ViewerName>\VirtualDirectory\Resources\Styles\Custom you will find the handheld.css file. You can add the following:
.global-search{
display:none !important;
}
Jennifer0
Please sign in to leave a comment.
Comments
6 comments