Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: filter out certain folders #12

Open
ebogaard opened this issue Sep 27, 2013 · 2 comments
Open

Enhancement: filter out certain folders #12

ebogaard opened this issue Sep 27, 2013 · 2 comments

Comments

@ebogaard
Copy link

Alfresco creates several system folders per Site. dataLists and discussions, for example. As only the documents in the documentLibrary are proper files, these other folders are quite useless in the HTML5-client.
When searching for a keyword that exists in a datalist, the HTML5-app actually stops functioning, unless you do a hard refresh.

Is there any way to 'filter out' or exclude the display of these folders from normal view and search?

@agea
Copy link
Owner

agea commented Oct 2, 2013

The problem with datalist results has been resolved in commit 7563bc9 (it was an exception showing file size)

To filter out folders the easiest way would be to specify a folder (for example by specifying a noderef or a path in config.js) and then adding the IN_TREE predicate to all queries and removing the leading part of the path.

We could also change this value at runtime, for example searching at login all the "documentLibrary" folders in sites and letting the user choose the site (or the whole repository) to browse from a dropdown

@ebogaard
Copy link
Author

ebogaard commented Oct 2, 2013

Thanks for fixing the crash on datalist-entries. That's a good enough work-around for now.

What I was talking about when I said 'filter out' certain folders, I meant not display those trees at all. When i read your comment, I think you thought I meant to not display the exta level that those system folders represent. Though those folders are in fact reasonably unnecessary, as all other interfaces show those folders as well, WebDav for example, I don;t think we need to change that.

I only ment not displaying anything of the tree of other systemfolders than documentLibrary, including those systemfolders. So for example, don't show datalists/*, including datalist itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants