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 to paginate long article page


Reply

2 Posts   1165 Views

Avatar
karibe

14 January 2010 at 11:17pm Community Member, 56 Posts

Hi
I have some long articles on my page and they should be paginated into few.
Let say I'll fix constant value for page to 20 sentences and next 20 should go to next page until article will end.
Is there some implementation in ss 2.3.4?

Avatar
CodeGuerrilla

15 January 2010 at 12:41pm (Last edited: 15 January 2010 12:42pm), Community Member, 105 Posts

Think the [url=http://doc.silverstripe.org/doku.php?id=tutorial:4-site-search]Site Search[/url] tutorial does pagination

If you want to just summerize your content fields and provide links to pages that expand the information:

[url]http://doc.silverstripe.org/doku.php?id=htmltext[/url]

But as far as I know there is no out of the box solution to paginate one field of HTMLText