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.

General Questions

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

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

How does one use a PaginatedList


Reply

4 Posts   480 Views

Avatar
gh

21 January 2012 at 9:20pm Community Member, 10 Posts

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

Thank you very much.

gh

Avatar
danzzz

21 January 2012 at 11:42pm Community Member, 175 Posts

may you describe your problem with more details?

Avatar
gh

22 January 2012 at 8:10am Community Member, 10 Posts

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

22 January 2012 at 10:19pm Forum Moderator, 5511 Posts

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.