I need help creating a next page
#1
Hello everyone.

I'm doing a video addon and I have a function that receives the number of the page as parameter and returns a list of dicts with the data, in my case are the first twenty elements.

I already create the next page item using a code like this: https://paste.kodi.tv/uviqepobaq

Also, I tried to increment a count after click in the next page item but the variable value is no more than two, because I initialize the variable in one, but when there is a click in the folder "next value" value comes into one again.

Another problem that i have is updating the data into the listitem.

If someone can help me showing me an example that explains how to do a kodi pagination, I will be grateful.

Thanks.
Reply
#2
(2021-03-19, 23:23)juansebastian028 Wrote: Hello everyone.

I'm doing a video addon and I have a function that receives the number of the page as parameter and returns a list of dicts with the data, in my case are the first twenty elements.

I already created the next page item using a code like this: https://paste.kodi.tv/uviqepobaq

Also, I tried to increment a count after click in the next page item but the variable value is no more than two, because I initialize the variable in one, but when there is a click in the folder "next page" value comes into one again.

Another problem that i have is updating the data into the listitem.

If someone can help me showing me an example that explains how to do a kodi pagination, I will be grateful.

Thanks.
Reply
#3
(2021-03-19, 23:26)juansebastian028 Wrote:
(2021-03-19, 23:23)juansebastian028 Wrote: Hello everyone.

I'm doing a video addon and I have a function that receives the number of the page as parameter and returns a list of dicts with the data, in my case are the first twenty elements.

I already created the next page item using a code like this: https://paste.kodi.tv/uviqepobaq

Also, I tried to increment a count after click in the next page item but the variable value is always two, because I initialize the variable in one, but when there is a click in the folder "next page" value comes into two again.

Another problem that i have is updating the data into the listitem.

If someone can help me showing me an example that explains how to do a kodi pagination, I will be grateful.

Thanks for your help.

I'm sorry if a have an english mistake, it is not my native language
Reply
#4
(2021-03-19, 23:32)juansebastian028 Wrote:
(2021-03-19, 23:26)juansebastian028 Wrote:
(2021-03-19, 23:23)juansebastian028 Wrote: Hello everyone.

I'm doing a video addon and I have a function that receives the number of the page as parameter and returns a list of dicts with the data, in my case are the first twenty elements.

I already created the next page item using a code like this: https://paste.kodi.tv/uviqepobaq

Also, I tried to increment a count after click in the next page item but the variable value is always two, because I initialize the variable in one, but when there is a click in the folder "next page" value comes into two again.

Another problem that i have is updating the data into the listitem.

If someone can help me showing me an example that explains how to do a kodi pagination, I will be grateful.

Thanks for your help.

I'm sorry if a have an english mistake, it is not my native language

What's up with quoting your post twice, since your made your original post x minutes ago ,it won't get a answer any quicker. Remember the people, who knows your answers might not be online, they could members are from different time zone, could be a sleep. Sometimes answers could take a week, maybe less maybe more ,
Spaming forums don't look good
Reply
#5
[font][font]Sorry, I'm new here, i had some mistakes [/font][/font]drafting my post and I don´t know how can edit. I'm sorry that was not my intention.
Reply

Logout Mark Read Team Forum Stats Members Help
I need help creating a next page0