function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gopikrishnagopikrishna 

Pagination in site.com

Hi all 

 

           How to create pagination in site.com please response me this possible or not?

 

Thank you.

Best Answer chosen by Admin (Salesforce Developers) 
itsabsoluteitsabsolute

Hello, 

 

Here is the Salesforce.com help topic on:

 

Adding Pagination to Repeaters and Data Tables

 

Events let you add interactive and animated effects to the pages and page elements of your website. When using repeaters and data tables, you can add pagination events so users can easily page through the displayed data. This is particularly useful when working with large amounts of data.

For example, if you’ve added a repeater that displays all the users in an organization, you can add pagination to help users navigate through the data. You can add three pagination events:
  • Previous Page
  • Next Page
  • Go To Page
Creating Previous and Next Pagination
You can create previous and next buttons so users can move through the data one page at a time. The process for creating both buttons is the same.
  1. Create your repeater or data table.
  2. In the repeater or data table, be sure to specify how many records to display per page in the Limits section.
  3. Drag a button to the page.
  4. In the Properties pane, change the Button Name to Previous Page or Next Page as appropriate.
  5. In the Events pane, select the click event.
  6. When the Actions box appears, click Add and select the Previous Page or Next Page action.
  7. In the Target Element, select the repeater or data table.
  8. Click Save.
Creating GoTo Pagination

Creating GoTo navigation is similar to creating the previous and next buttons, but you must add an input field so users can specify what page they what to go to.

  1. Create your repeater or data table.
  2. In the repeater or data table, be sure to specify how many records to display per page in the Limits section.
  3. Drag a Number field onto the page.
  4. In the Properties pane, change the field’s Label Name to something that makes sense. For example, Enter Page Number.
  5. Drag a Button onto the page.
  6. In the Properties pane, change the Button Name to GoTo Page.
  7. In the Events pane, select the click event.
  8. When the Actions box appears, click Add and select the Go To Page action.
  9. In the Target Element, select the repeater or data table.
  10. For Input Field ID, select the field you created in step 3.
  11. Click Save.

All Answers

itsabsoluteitsabsolute

Hello, 

 

Here is the Salesforce.com help topic on:

 

Adding Pagination to Repeaters and Data Tables

 

Events let you add interactive and animated effects to the pages and page elements of your website. When using repeaters and data tables, you can add pagination events so users can easily page through the displayed data. This is particularly useful when working with large amounts of data.

For example, if you’ve added a repeater that displays all the users in an organization, you can add pagination to help users navigate through the data. You can add three pagination events:
  • Previous Page
  • Next Page
  • Go To Page
Creating Previous and Next Pagination
You can create previous and next buttons so users can move through the data one page at a time. The process for creating both buttons is the same.
  1. Create your repeater or data table.
  2. In the repeater or data table, be sure to specify how many records to display per page in the Limits section.
  3. Drag a button to the page.
  4. In the Properties pane, change the Button Name to Previous Page or Next Page as appropriate.
  5. In the Events pane, select the click event.
  6. When the Actions box appears, click Add and select the Previous Page or Next Page action.
  7. In the Target Element, select the repeater or data table.
  8. Click Save.
Creating GoTo Pagination

Creating GoTo navigation is similar to creating the previous and next buttons, but you must add an input field so users can specify what page they what to go to.

  1. Create your repeater or data table.
  2. In the repeater or data table, be sure to specify how many records to display per page in the Limits section.
  3. Drag a Number field onto the page.
  4. In the Properties pane, change the field’s Label Name to something that makes sense. For example, Enter Page Number.
  5. Drag a Button onto the page.
  6. In the Properties pane, change the Button Name to GoTo Page.
  7. In the Events pane, select the click event.
  8. When the Actions box appears, click Add and select the Go To Page action.
  9. In the Target Element, select the repeater or data table.
  10. For Input Field ID, select the field you created in step 3.
  11. Click Save.
This was selected as the best answer
gopikrishnagopikrishna

Thank you very much..

Shivanath DevnarayananShivanath Devnarayanan
hey gopi, if itsabsolute's answer solved your problem please mark it as solved so others may also find it helpful. thank you

happy coding !
gopikrishnagopikrishna

Hi, 

 

          i got the pagination only for previous and next buttons but have the previouspage 1 2 3 4 5 6 7 nextpage.

how will get this functionality.

 

Thank you.

 

FuzzyLogic72FuzzyLogic72
Thanks
mattclausenmattclausen
I am trying to refine the pagination functionality using the Site.com (now Community Designer tool?). I have the Previous and Next buttons added, but they are not smart enough to know when they've reached the end of the pages. So on the last page of content, there's still a Next button, even though there is no next page of content? How would I resolve this?