Developer forum

Forum » Swift » How to specify searchresult - restricted / non-restricted content (files and pages).

How to specify searchresult - restricted / non-restricted content (files and pages).

Michael Elkjær
Reply
On a DW Swift solution I’m creating an intranet for employees - a user-restricted area.
 
I wish to have two search-fields:
- one for searching the main site (pages and files)
- one for searching the intranet (placed under the user-restricted area)
 
I have already created the main search-field, but I don't want it to show search-results from the restreicted area.
 
And vise versa I want the interanet-search-field to only show:
- restricted files placed in a unique folder incl. subfolders.
- restricted content placed in the intranet
 
How is this possible?

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

It depends on how your setup is.

Usually having an extranet would be on a seperate website - then you can use the website contextid to filter out pages that belongs to each of the websites.

That should already be part of the content query distirbuted with Swift:

 

You must be logged in to post in the forum