0

In the search part, I need the search to be limited only to the current directory or location of the user. Suppose, if I am in a directory on a specific site, just search from there down the directory tree.

To which I am trying to modify the live-search.lib.js file that is in alfresco-share-services-5.2.f.jar.

So I want to fetch the current page URL which I will be using to filter out the search result.

Any other suggestions to achieve this specific folder search, are Welcomed.

Thank You.

1 Answers1

1

You can use ScriptNode API. You have to find the doc(by using findNode method)

Then you can use document.displayPath to get path.

-Arjun

Arjun
  • 624
  • 2
  • 6