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

offset not being passed to getResources? #33

Open
JayCarney opened this issue Oct 13, 2017 · 1 comment
Open

offset not being passed to getResources? #33

JayCarney opened this issue Oct 13, 2017 · 1 comment

Comments

@JayCarney
Copy link

The following two snippet calls are producing different output

[[!getResources? &offset=`1` &limit=`2` &tpl=``]]

[[!getPage? &offset=`1` &element=`getResources` &elementClass=`modSnippet` &limit=`2` &tpl=``]]

Using getResources directly behaves as expected, but getPage is starting from the first resource instead of starting at the second?

@opengeek
Copy link
Owner

getPage manages the offset sent to getResources in order to accomplish paging. You cannot override it.

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

No branches or pull requests

2 participants