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

MODX3 Issue #37

Open
toro-terminator opened this issue Sep 21, 2022 · 0 comments
Open

MODX3 Issue #37

toro-terminator opened this issue Sep 21, 2022 · 0 comments

Comments

@toro-terminator
Copy link

Just tried getPage on v3.0.0 Beta 1.
The page rendered my resources like getResources normally would but the placeholders for pagination were empty.
I debugged by checking the [properties] it was building and noticed the limit was 0.
I manually put a number on this line instead of NULL and it worked as expected.

$properties['limit'] = (isset($_GET['limit'])) ? intval($_GET['limit']) : 9;

Same snippet call as usual.

[[!getPage?
    &element=`getResources` 
    &parents=`[[*id]]` 
    &tpl=`blog-card` 
    &includeTVs=`1` 
    &includeContent=`1`
    &sortby=`publishedon` 
    &sortdir=`DESC` 
    &limit=`9`
]]

<ul class="pageNav clearfix">[[!+page.nav]]</ul>

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

1 participant