01-02-2019 03:23 PM
How to remove the last searched keyword from Site Search when user logs in?
My requirement is that when user logs in Site Search dashlet should be empty and any searches made from there after should be active during user session.
01-02-2019 10:22 PM
Hi,
This search term and result of that term are stored in Preferences so you have to remove that to clear out search result during new login.
you can do that change in site-search.js to clear preferences.
Thanks,
01-02-2019 10:59 PM
Thanks Sanjay.
Buy my requirement is to clear the search keyword and results (preferences) during login (only once), not every time user move away from site dashboard.
Also I have set user home page as Site home page for some of the users, in this case, will it work?
01-02-2019 11:10 PM
I think this search is stored in user preferences so first thing you have to find how they are storing ?(I haven't trid)
After that clear that preferences as soon as login is complete.
Explore our Alfresco products with the links below. Use labels to filter content by product module.