This is an archived version of our old forum. Be aware that the solutions and questions mentioned here, might no longer be valid for Kirby 2! Please refer to our new forum for more recent questions and answers.

How to display last modified/newest pages?

by mxrproductions

Hey,..

I am thinking of creating a template that displays all the newest pages and the latest modified pages in a list.

So far I came up with this but it seems that it does omit children.
<?php $index = $site->index()->filterBy('template', 'video')->not('@eaDir')->sortBy('date')->not('@eaDir')->limit(6);?>
<?php foreach($index as $i): ?>

  • modified('d.m.Y, H:i');?>h
    url() ?>
  • <?php endforeach ?>

    Anyone has an idea?

    0 Replies

    Our partners

    CDN by KeyCDN Search by Algolia

    Top