Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Worksite Web Folder Search Profile
System
I am using Worksite Web to only search one of my configured databases. For this reason, I need to edit the default profiles for searching to only return results from that database.
Using the Manage menu i'm able to edit the Document Search and Workspace Search profiles. However, I can't see how to edit the Folder Search profile.
Any ideas?
Cheers
Find more posts tagged with
Comments
dabird
The folder search profile is not available in the Manage section because you are limited by iManage.dll on the search properties. You can modify the folder search profile directly in the Resource Page xml. This file is in your database just like any other page. To get to the resource page, login to WSW as an administrator and then type this link into your browser window:
http://<server>/<worksite_virtual_directory>/scripts/SystemDiagnostics.aspx
.
Copy the resource page to notepad. You want to be able to search for strings. I also recommend making a back up copy on your local machine in case you make a mistake in the xml formatting.
Search for "folder-search-profile".
You should see a child node <folder-search-parameters> and underneath this is a database node. In the query attribute of the database node, specify a comma-delimited list of database names. Your node will now look like this: <database width="40%" input="lookup" query="db1,db2" />
Make sure that your xml formatting is correct so that you are able to save the page back to the repository.
Copy the text from notepad back to the text area in SystemDiagnostics.aspx.
Click the OK button to save the resource page back to the repository. Your changes will be instantaneous; there's no need to restart IIS.
Migrateduser
Perfect! Thank you so much.
Migrateduser
I now have the problem of two Worksite Web sites (on different IIS servers) connecting back to the one Worksite database.
Updating the resource.xml file appears to update both sites, instead of just applying to the one I connect to (ie via the systemdiagnostics.aspx).
We would like two different folder search profiles for each website, thus my dilemma.
I can probably add another section into the XML, but how do I determine which site uses which folder search.
Any assistance, greatly appreciated.
Cheers
dabird
The resource page is per DMS, not per WorkSite Web installation. Therefore, when you have two WorkSite Web installations pointing to the same DMS, they will update one resource page. Unfortunately, there is no way around this with folder search profiles. And since folder searches are limited by iManage.dll, we only expose and use the one folder search profile in WorkSite Web. The folder search profile is essentially hard-coded inside WorkSite Web.
Off the top of my head, one suggestion that comes to mind is to modify the profile rendering via JavaScript. Using JavaScript, you can check the url of the request and then reset the database field accordingly. I haven't looked at the code, but I think this should be possible in 8.1 and forward. Does this sound like a solution you'd want to try? If so, then I'll have to review the code to see if it could be accomplished.