microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
388 stars 341 forks source link

Open documents in client applications (v2) #4103

Closed Tetronic closed 1 week ago

Tetronic commented 1 week ago

The idea is that the Search Results WebPart should have an easy possibility to enable search results documents for open in the client applications. The file types should encompass .docx, .pptx, .xlsx and .pdf.

I found this suggestion in the older issues https://github.com/microsoft-search/pnp-modern-search/issues/3640, where kasperbolarsen responded to tweak the URL in the Handlebar options. I tried that and it works basically for one certain file type, but the logic gets very complex if you want to deal with all four. Thus, it would be very good, if you could add a boolean option, so that results of all four types would just open either in the browser or in the client application.

Thanks Tetronic