Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

List of newest/latest pages

Started by Raf van de Vreugde 9 years ago · 2 replies · 1093 views
9 years ago

Is there an easy way to include a list of newest or last updated pages in a grav page?

Thanks a lot,

TXT
 Raf
9 years ago

Thanks for the tip!

I used the code at the end of the article, but I have changed the options

{% set options = { items: {'@page.children': '/'}, 'limit': 5, 'order': {'by': 'date', 'dir': 'desc'}, 'pagination': true } %}

But, it only gives the result of my first menu item (Home), althoughI have specified the '/' as root:
Selection_068|690x150

The menu structure is as follows:
Selection_067|234x237

Regards,

TXT
Raf

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 10 months ago
6 925 10 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 739 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 660 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 584 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 959 2 years ago