In your getPage call : remove &offset=`1` and change &limit to =`5`. Add &pageVarKey=`page`.
Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
-
☆ A M B ☆
- 894 Posts
This code you have here is what you are using for the homepage where it’s displaying only 3 articles so in theory it is working like it should on that page, although I don’t see the page navigation on it.
Try changing the limit to 5 so that it displays only 5 articles per page and the offset to 0 unless there’s a specific reason for it being 1.
I also noticed that when you click on page 2 it just displays the same content, so make sure you have more than 5 entries.
Si es mas facil explicar en español lo que quieres hacer dejame saber a ver como te puedo ayudar
You need to repeat the styling / placing instruction you’ve given at the top of the page to produce the archive, in the getPage call. Add
&toPlaceholder=`news-all` &tpl=`latest-news` &tplLast=`latest-news-last` to your getPage call (remove the &tpl=`myRowTpl`).
That way getPage should put something in the news-all placeholder instead of simply paginating (which it is doing correctly - page 1 and page 2 exist).
Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
Prueba con cambiar el orden de getArchives y getPage - creo que no puede saltar arriba en la pagina. De todos modos estara publicando el getArchives primero, o sea que no me extrana que siga siendo los mismos resultados.
Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86