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

Path depth/level #62

Open
cedricmessiant opened this issue Apr 14, 2015 · 2 comments
Open

Path depth/level #62

cedricmessiant opened this issue Apr 14, 2015 · 2 comments
Labels

Comments

@cedricmessiant
Copy link
Contributor

Why do depth parameter of path widget in fact uses the level parameter for catalog query ? I want to fix this but I'm not sure if it is a bug or a feature (in fact, the parameter doesn't do what it says.)

@avoinea
Copy link
Member

avoinea commented Apr 15, 2015

Can you detail a little bit, please? How it should be? Maybe it's an old code coming from Plone-2.5 era :). We didn't use that much this widget, so it may be a bug.

Thank you.

@avoinea avoinea added the Bug label Apr 15, 2015
@cedricmessiant
Copy link
Contributor Author

Depth parameter is about how many levels deep you make the query (0 is only the brain of the given path, 1 is it and its children) : http://docs.plone.org/develop/plone/searching_and_indexing/query.html?highlight=querying#query-by-path
The level parameter is the level from which you search the level path. For example, catalog(path=dict(query='some/path', level=2)) searches for all objects whose path contains some/path at level 2. This includes paths like /foo/bar/some/path and /spam/eggs/some/path, plus all children of those paths.

The plone documentation does not refer to the level parameter. You have to look at Products.ExtendedPathIndex readme to get information on it : https://github.com/plone/Products.ExtendedPathIndex/blob/master/README.txt

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

No branches or pull requests

2 participants