Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

List of newest/latest pages

Started by Raf van de Vreugde 8 years ago · 2 replies · 823 views
8 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
8 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, 8 months ago
6 94 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 184 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 146 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 60 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 254 1 year ago