RECHERCHE WEB WEBE WEBLOW WebPart n'ayant pas afficher "Aucun résultat correspondant à votre recherche n'a été trouvé" dans SP2010

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/71918

Question

Cela pourrait être très simple, mais depuis que je suis nouveau dans "SharePoint Search", je ne suis pas capable de le comprendre.

Utilisation d'un "WebPart de recherche avancée" Je cherche une recherche.En cliquant sur le bouton de recherche, si les éléments sont trouvés, les éléments sont affichés dans la "WebPart de résultat de la recherche", mais si aucun élément correspond à la recherche effectuée, le "webart de résultat de recherche de recherche" est affiché vide, ici iBesoin d'afficher un message à l'utilisateur comme "Aucun résultat correspondant à votre recherche n'a été trouvé".

Merci d'avance.

Était-ce utile?

La solution

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 :)

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top