Way to default images to be hidden from search?

Alex B asked on January 6, 2021 21:15

Is there a way to default image files to be automatically "excluded from search" when added to a page in the CMS? The way it is now, editors must upload the image file then go to Properties > navigation > check the box "exclude from search" - Is there a way to have this done automatically?

Recent Answers


Juraj Ondrus answered on January 7, 2021 07:12

There are several options possible.
You can configure the smart search index to do not cover given page type or location at all. You can set it e.g. as excluded content.
You can configure the search results web part and use search condition and exclude those items based on some flag, e.g. the -nodeclassID: 123.
You can use global event handlers and use the API to set the "Exclude from search" flag using the code.
If you mean search like Google or other search engines on the Internet, use robots.txt.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.