Limiting search results by content type in DNN 9.0+

Overview

In the process of building out a DNN instance, it may be necessary to exclude certain content types from being retrieved when using the search module (e.g. images, users, group directories.) This will ensure that assets with the searched keyword do not show up if they are part of an excluded content type. 

Steps

Requirements: SuperUser/Host or admin access.

1. Log in to your DNN instance with SuperUser/Host or admin credentials. 

2. Navigate to a page that contains the search bar

3. Enter a word into the search bar and click on the search button to load the search results page

searchresults.jpg

4. Place your mouse cursor over the module to show the settings icon and click on it

5. Click on Settings in the menu that pops up. 

searchsettings.jpg

6. In the module settings page, click on the Search Results Settings tab.

7. Click on the Results Scope For Content Type(s) drop-down and exclude the necessary types by unchecking the box next to them. 

8. Click Update.

searchresultsettings.jpg

9.  Clear your cache and restart the application

10. Validate the changes made by using the search bar to search for the name of an asset from an excluded content type. Zero results should show. 

Comments

1 comment

  • Avatar
    Laurence (MPI Web Support)

    Is it possible to edit the group names that appear in the search preview window? We use digArticle extensively through our intranet but the brand name means nothing to the end user so we would like to change this to just "Articles"

    We changed the module friendly name to Articles and cleared the cache but it had no affect.

    Any help is appreciated

     

    0
    Comment actions Permalink

Please sign in to leave a comment.