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

pdoResource & depth & otherContext #4

Closed
AgelxNash opened this issue Jul 20, 2013 · 0 comments
Closed

pdoResource & depth & otherContext #4

AgelxNash opened this issue Jul 20, 2013 · 0 comments
Labels

Comments

@AgelxNash
Copy link
Contributor

Если нужно вывести документы из другого контекста, при используется параметр depth, то придется pdoResource завернуть в сниппет в котором перед вызовом сниппета сделать switchContext на нужный контекст, а потом опять вызвать эту же функцию чтобы вернуть все на место.
у modX::getChildIds есть 3 параметр в котором можно указывать контекст из которого производить поиск. Может быть стоит завести отдельный параметр типа depthContext?

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

1 participant