Skip to content

MODX3 Issue #37

@toro-terminator

Description

@toro-terminator

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions