GetSimple plugin: Recent Pages

Note this is a *very* simple and experimental plugin.

Update:
Not compatible with GetSimple 3.1 (beta). To fix it, replace $digi_pagesArray with $pagesArray (5 occurrences) in the recentpages.php file.

Download Recent Pages v0.2.1 beta (compatible with latest PagesXML plugin 2.3)
(Archived: Recent Pages v0.1.2 beta, compatible with PagesXML up to 2.2)

Recent Pages [beta]
GetSimple plugin
display latest updated pages

NOTE: requires: PagesXML plugin (named "Page Caching" in GetSimple Extend)

recent_pages - displays latest updated pages in reverse chronological order.

USAGE:

<?php recent_pages(numberofpages, parentpage); ?>

* numberofpages: default 0 = all pages
* parentpage: select only children of a page. If empty, "any parent"

EXAMPLES:
recent_pages() - all pages in the site
recent_pages(7) - latest 7 pages in the site
recent_pages(10,'blog') - latest 10 subpages of 'blog'
recent_pages(0,'news') - all subpages of 'news'

(With this version to customize the output you have to edit the last lines of recentpages.php)

 

TO-DO:
- select by keyword/tag
- easier way to customize output (with a component...?)
- select a different datetime field (e.g. i18customfields' creDate)
...

 

CHANGELOG:

0.1 initial release
0.1.1 fixed slashes problem (thanks Connie)
0.1.2 fix (private pages were being listed)
0.2 compatible with PagesXML (PageCaching) 2.3 (but not with previous versions)
0.2.1 pages with publication date set in the future will not be listed