ProcessWire - Pagination: Unterschied zwischen den Versionen
Aus Wikizone
Steff (Diskussion | Beiträge) |
|||
| Zeile 1: | Zeile 1: | ||
== Siehe auch == | == Siehe auch == | ||
[[ProcessWire - $input Variable]] | [[ProcessWire - $input Variable]] | ||
| + | https://processwire.com/docs/front-end/how-to-use-url-segments/#page-numbers-and-url-segments | ||
== Seitenbrowser / Pagebrowser in ProcessWire erzeugen == | == Seitenbrowser / Pagebrowser in ProcessWire erzeugen == | ||
Version vom 31. März 2021, 07:59 Uhr
Siehe auch
ProcessWire - $input Variable https://processwire.com/docs/front-end/how-to-use-url-segments/#page-numbers-and-url-segments
Seitenbrowser / Pagebrowser in ProcessWire erzeugen
https://processwire.com/api/modules/markup-pager-nav/
- Im Template erlauben
Beispiele
Kindseiten (z.B. Blog Einträge) auflisten
// override some standard pager settings
$pagerOptions = array(
'listMarkup' => "<ul class='uk-pagination'>{out}</ul>",
);
$posts = page()->children('limit=10');
$pagination = $posts->renderPager($pagerOptions);
// output pagination
echo ($pagination)
/*
* Note that the render() method above is from the MarkupPageArray plugin module.
* It does nothing more than iterate through the provided pages and make an unordered list,
* optionally with pagination.