Domanda

Questo potrebbe essere molto semplice, ma dal momento che sono nuovo a "SharePoint Search" Non sono in grado di capirlo.

Utilizzo di "Ricerca avanzata WebPart" Sto eseguendo la ricerca.Sul tasto di ricerca del pulsante di ricerca, se vengono trovati gli elementi, le voci vengono visualizzate nel "Search Core Risultato WebPart", ma se nessun elemento corrisponde per la ricerca eseguita, quindi "Search Core Risulult WebPart" viene visualizzato vuoto, qui ioÈ necessario visualizzare un messaggio all'utente come "Nessun risultato corrispondente alla ricerca è stato trovato".

Grazie in anticipo.

È stato utile?

Soluzione

Open the xsl of your search core results web part and search it for a Microsoft comment: <!-- When empty result set is returned from search -->. Just below that comment there's an xsl template to show the message if no results are found, so maybe you can find the default xsl for core results web part on the internet or just take it from the core results web part with default customization and then compare it with yours. Or you can write your own html to display when there's no results by replacing everything inside that template :)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top