Skip to content

Blog Layout for Site View / Less Items shown #655

Discussion options

You must be logged in to vote

The dynamic get has a method to load all, or use pagination.

When you have a getListQuery get... so turn it off...

You will see that JCB adds this code to the model inside the getListQuery method.

// Make sure all records load, since no pagination allowed.
$this->setState('list.limit', 0);

This means if you set pagination to yes... this line will not be added. But you can in the custom code area, under the Custom Script tab add this line with your own numbers, like this:

// Make sure only three records are loaded
$this->setState('list.limit', 3);

Pagination is only applicable to getListQuery option though as you can understand the whole class must know about what is happening, and so m…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by LordRazen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Llewellynvdm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants