Crear paginación con Fishpig

1 minuto de lectura

Estoy mostrando 3 publicaciones en mi página de inicio y necesito tener una funcionalidad de tipo de página siguiente o página anterior. También me gustaría incorporar 1, 2, 3, 4, 5, 6, 7, 8, 9… escriba la funcionalidad de paginación en algunas áreas del sitio.

Intenté hacer esto:

    <span class="page-skips">
        <?php if (($previous = $page->getPreviousPage()) !== false): ?>
            <a href="https://stackoverflow.com/questions/22620421/<?php echo $previous->getPermalink() ?>">&larr; <?php echo $this->__('Previous Page') ?></a>
        <?php endif; ?>
        <?php if (($next = $page->getNextPage()) !== false): ?>
            <a href="<?php echo $next->getPermalink() ?>"><?php echo $this->__('Next Page') ?> &rarr;</a>
        <?php endif; ?>
    </span>

pero getPreviousPage / getNextPage obviamente no son funciones. ¿algunas ideas?

¿Ha sido útil esta solución?