Pagination in kentico 13

Shubham Bhardwaj asked on April 13, 2023 11:35

Hi, I need to implement pagination in Kentico 13. I am not able to find about this topic in the kentico 13 documentation.

Thanks

Recent Answers


Ömer Karagülmez answered on April 13, 2023 13:03 (last edited on April 13, 2023 13:04)

Hello,

If you ask about using pagination in pages. You could review code snippet below

// Retrieves pages of the specified page type that match the query
var pages = new DocumentQuery("Custom.Smartphone")
                .OnCurrentSite()
                .Path("/Products")
                .Culture("en-us")
                .Page(0,10) //this
                .CombineWithDefaultCulture()
                .PublishedVersion();

I've attached related document about that

https://docs.xperience.io/custom-development/working-with-pages-in-the-api

If you're not asking about pages/documents, I need more detail

Regards

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.