Hi!
I have a simple TV "listDoc" with MIGX configurate like this:
[
{"caption":"Info", "fields":
[
{"field":"title","caption":"Titre"},
{"field":"date","caption":"Date","inputTVtype":"date"},
{"field":"image","caption":"Fichier","inputTVtype":"file","sourceFrom":"migx"},
{"field":"description","caption":"Descriptif","inputTVtype":"textarea"},
{"field":"type","caption":"Type de document","inputTVtype":"listbox","inputOptionValues":"Document PDF==pdf||Document Word==word||Fichier texte==text||Document Excel==excel||Document Powerpoint==powerpoint||Archive ZIP==archive"}
]
}
]
Then, I use this:
[[getImageList? &tvname=`listDoc` &sort=`[{"sortby":"date","sortdir":"DESC"}]` &tpl=`listDoc`]]
But, if I have 60 documents, my page will be too many longuer. So, I want to paginate. In the doc of MIGX, I read that I can use the propertie totalVar because it's “usefull together with getPage for pagination”. Great, but I have no explanation (neither in the getPage documentation). How can I do? Please.