From 0b9ca1d05cb3dd0e5850f8e5374f21f22e40af3d Mon Sep 17 00:00:00 2001 From: sonja Date: Sun, 13 Dec 2020 12:51:39 +0100 Subject: [PATCH] Add notes about collections --- site/collections/notes.php | 8 +++++++- site/controllers/notes.php | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/site/collections/notes.php b/site/collections/notes.php index 5d298a7..a40e79f 100755 --- a/site/collections/notes.php +++ b/site/collections/notes.php @@ -1,5 +1,11 @@ children() diff --git a/site/controllers/notes.php b/site/controllers/notes.php index 101573d..2063568 100755 --- a/site/controllers/notes.php +++ b/site/controllers/notes.php @@ -12,6 +12,12 @@ return function ($page) { $tag = urldecode(param('tag')); + /** + * We use the collection helper to fetch the notes collection defined in `/site/collections/notes.php` + * + * More about collections: + * http://getkirby.test/docs/guide/templates/collections + */ $notes = collection('notes'); if (empty($tag) === false) {