コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Pagination Component Problem

Avatar

Level 7

Hi, my pagination component is not working. Can anybody provide the source code including js, dialog, html and sling model. Thank you

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

@Sanjana12 The js, html , siling models and dialogs can be handled differently based on the use case you have for your component.  

Operations performed by each modules:
1. Sling Model: Adapt the pages as SlingHttprequest, thus we can easily retrieve selector parameter.
2. Query Builder:Based on the selector received on step 1- it queries the JCR.
3. JavaScript Use API: With the help of number of results, it create pagination links.
4. Sightly:As usual its used as View to render everything to user.

 

Souce code totally depends on your use case.

Hope this helps!

 

 

元の投稿で解決策を見る

3 返信

Avatar

Employee Advisor

Avatar

正解者
Community Advisor

@Sanjana12 The js, html , siling models and dialogs can be handled differently based on the use case you have for your component.  

Operations performed by each modules:
1. Sling Model: Adapt the pages as SlingHttprequest, thus we can easily retrieve selector parameter.
2. Query Builder:Based on the selector received on step 1- it queries the JCR.
3. JavaScript Use API: With the help of number of results, it create pagination links.
4. Sightly:As usual its used as View to render everything to user.

 

Souce code totally depends on your use case.

Hope this helps!

 

 

Avatar

Community Advisor and Adobe Champion

Refer Complete code of Pagination Component https://github.com/AEMClub/adobe-aem-club/tree/master/sightlypagination