Search without Banner
The instant search functionality is great, however I can't figure out how to turn off the banner and keep the instant search.
I've tried adding a search button to the "I want to..." menu. It looks like it should work, but I must be doing something wrong. Anyone have any luck with this?
0
-
Raphael,
How to construct a banner without a search?
Is that possible?
Thx
Tim0 -
Hi Tim,
Using the directions that Alejandro posted above, you can edit your viewer configuration files and move the search box to a different region. If you don't disable the banner afterwards, the banner will still remain, but the search box will be moved elsewhere.
If you would like to instead remove the search bar from your site entirely, the easiest way is to hide it using custom CSS. To do this, you would open your custom css file for the shell you want to change
(eg, "C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SITENAME\Viewers\VIEWERNAME\VirtualDirectory\Resources\Styles\Custom\Desktop.css")
and add the following:.search-box { display: none; }Hope that helps!
Amanda0 -
Alejandro, Amanda-
I'm not able to get this to work using the code above. I've turned off the banner and edited the desktop.json file in the site folder using the code below but I'm still getting this. Any thoughts?
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000Graq&feoid=Body&refid=0EM60000000UjjK" _/_img_
{
"moduleName": "Search",
"moduleType": "geocortex.essentialsHtmlViewer.mapping.modules.search.SearchModule",
"configuration": {
"autoLoadSiteGeocoders": true,
"searchProviders": [
{
"type": "geocortex.essentialsHtmlViewer.mapping.modules.search.SearchTableSearchProvider",
"enable": true
},
{
"type": "geocortex.essentialsHtmlViewer.mapping.modules.search.LayerQuerySearchProvider",
"enable": true
},
{
"type": "geocortex.essentialsHtmlViewer.mapping.modules.search.InstantSearchProvider",
"name": "@language-search-instant-provider-name",
"description": "@language-search-instant-provider-description",
"enable": true,
"configuration": {
"maxResults": 50,
"maxHints": 5,
"precedenceToNearbyResults": true,
"enableSearchHints": true
}
}
]
},
"views": [
{
"id": "SearchView",
"viewModelId": "SearchViewModel",
"visible": true,
"title": "@language-search-title",
"iconUri": "Resources/Images/Icons/Toolbar/search-32.png",
"markup": "Mapping/modules/Search/SearchView.html",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.search.SearchView",
"region": "TopRightMapRegion",
"configuration": {}
},
{
"id": "SearchHintsView",
"viewModelId": "SearchViewModel",
"visible": false,
"markup": "Mapping/modules/Search/SearchHintsView.html",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.search.SearchHintsView",
"region": "SearchHintsRegion",
"configuration": {}
}
],
"viewModels": [
{
"id": "SearchViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.search.SearchViewModel",
"configuration": {
"enableSearchRefinement": true,
"delayConsecutiveSearches": false,
"minimumPopulateDelay": 300,
"minimumPrefixLength": 3
}
}
]
}0 -
Hi Scott,
I just did a test on my side, and it seems to be working for me. I don't see any issues with your configuration either. Can you please try this:
1) Add a new viewer to your site (I'm using GVH 2.8)
2) Edit your viewer's configuration file
3) Search the file for the following string:
"id": "SearchView",
4) In that element, change only the following element:
"region": "BannerContentRegion",
Change that to this:
"region": "TopRightMapRegion",
-----
That's the method I used, and it worked for me. If you're still having issues, I'd suggest opening a support case so we can assist you with this!
Thanks,
Danny0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare