Topic Content widget with pagination

Sindhuja10
Kilo Expert

I have customized the Topic Content widget which displays catalog items according to the Categories and Sub Categories. It currently displays the catalog item based on the limit that is set in the widget options. Once the show more button is clicked the next set of catalog items is loaded. I want to update this behaviour of show more to be similar to pagination.  I am unable to achieve the result, can someone please help.

2 REPLIES 2

GlideFather
Tera Patron

Hi @Sindhuja10,

 

when you mentioned that you customised something, maybe it's good to share that customisation with us... without that it's not clear what you did.

 

_____
No AI was used in the writing of this post. Pure #GlideFather only

mobel598
Kilo Contributor

@Sindhuja10 wrote:

I have customized the Topic Content widget which displays catalog items according to the Categories and Sub Categories. It currently displays the catalog item based on the limit that is set in the widget options. Once the show more button is clicked the next set of catalog items is loaded. I want to update this behaviour of show more to be similar to pagination.  I am unable to achieve the result, can someone please help.


Hello @Sindhuja10,
To implement pagination instead of “show more,” you need to replace the incremental load logic with a page index and page size. Each click should calculate the current page, query only that slice of catalog items, and refresh the widget content rather than appending. This way the widget displays items page by page, giving proper pagination controls instead of continuous loading.


Best Regards,
Mabel Brown