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

Pagination


Go to End


2 Posts   750 Views

Avatar
Arun_India

Community Member, 18 Posts

9 December 2011 at 5:55pm

Hi,

1.I want to add pagination to my "Recipie page" which contains recipie titles.

2.Can i change textbox to textarea in admin side.

pls some body help me.....

Regards
Arun

Avatar
DesignerX.com.au

Community Member, 107 Posts

9 December 2011 at 9:02pm

Hi, Maybe sharing the code can help us help you ;),
anyway, here is something may help:

public function JQueryGalleryPagination() {
$ItemsPerPage = $this->ItemsPerPage ;
$images = $this->JQueryGalleryItems(null, 'SortOrder');
$start = (isset($_GET['start'])) ? (int)$_GET['start'] : 0;
$page = $images->getRange($start ,$ItemsPerPage);
$page->setPageLimits($start,$ItemsPerPage, $images->count());
return $page;
}

I used this for my gallery, it should work the same for you (with changing the Variable names & fields names to what you need)
GL