Forum Discussion
Örjan Andersson
Mar 28, 2018Brass Contributor
Using search in modern sites
Without getting a complete answer (what the future will bring) I can see from earlier posts that people have asked if it’s possible to change/configure default search in a modern Communication Site? ...
Lennaert van der Meer
Jun 21, 2018Brass Contributor
Hi Örjan, your solution, is that also for SharePoint online? Thanks in advance!
Örjan Andersson
Jun 21, 2018Brass Contributor
Only did a POC but this was done in SharePoint Online (Office 365)
- Lennaert van der MeerJun 22, 2018Brass ContributorThanks for your reply, could you help me a little? I saw you can download sfx but how do you implement it Finally in SPO? With powershell?
- Örjan AnderssonJul 06, 2018Brass Contributor
Sorry for late response. This is a development framework so you need to code.
Have a look here to getting started:https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-extension
Look for implementing an application customizer and make sure that jQuery is referenced
import * as jQuery from 'jquery';To reference the placeholder containing search boxjQuery(".ms-compositeHeader-searchBoxContainer").html("Replaced");This just replace the placeholder with text but you can extend this to use a custom search box or adding custom event to the already existing inputbox.