How to Customize the TypeHead Search
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 05:47 AM - edited 10-11-2024 06:08 AM
I want to customize the home page search widget to get like this:
As of now I am getting like this, anyone help which things I need to do to get this done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 07:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 07:16 AM
Hi @Moin Kazi ,
HTML:
<div id="homepage-search" class="hidden-xs wrapper-xl">
<div class="wrapper-xl">
<h1 class="text-3x m-b-lg sp-tagline-color">Hello! {{::data.userName}}, <br></h1>
<h3 class="text-x m-b-lg sp-tagline-color">
Welcome to the <strong>iSolve Portal</strong> How can we help <br>you today?
</h3>
<div ng-if="options.short_description" class="text-center h4 m-b-lg sp-tagline-color" ng-bind="options.short_description"></div>
<sp-widget widget="data.typeAheadSearch"></sp-widget>
</div>
</div>
CSS:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 07:29 AM - edited 10-11-2024 07:29 AM
Everything is looking good in your code. can you try to impersonate any other user? is this issue for all users?
Or
Replace html line no 3 with this -
<h1 class="text-3x m-b-lg sp-tagline-color">Hello {{data.userName}}, <br></h1>
And try to replace your server side last line with this-
data.userName = gs.getUser().getDisplayName();
Hope this help you
Regards
Moin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 09:01 AM
Hi @Moin Kazi ,
Actually my thing is, here I am calling a widget named typeheadsearch i am facing an issue with the typeheadsearch widget. This widget is responsible for all searches.