Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How does one use a PaginatedList


Go to End


4 Posts   937 Views

Avatar
gh

Community Member, 10 Posts

21 January 2012 at 9:20pm

Does anyone know how to use the PaginatedList, both in the CMS and the frontend?

Thank you very much.

gh

Avatar
danzzz

Community Member, 175 Posts

21 January 2012 at 11:42pm

may you describe your problem with more details?

Avatar
gh

Community Member, 10 Posts

22 January 2012 at 8:10am

PaginatedList is neither a Page nor a PageHolder, so I can't put it in the SiteTree, like BlogTree of BlogHolder. So how do I get it on a Page?
Furthermore, I think a PaginatedList is a SS_ListDecorator, so I figure it handles anything that is derived from SS_List, like DataList, which can be a list of Pages, right?
Finally, I wonder why BlogHolder doesn't use PaginatedList for BlogEntries - or does it, in some magic-behind-the-scenes?

Unfortunately, I didn't find any documentation anywhere. So if you could enlighten me I would highly appreciate it.
Thank you very much.

gh

Avatar
Willr

Forum Moderator, 5523 Posts

22 January 2012 at 10:19pm

By the sounds of it you're playing around with trunk? None of the modules have been updated to use the new ORM API's in trunk yet so there may be a mix of 'old' and new methods flying around.