Add gallery page

This commit is contained in:
Paul Nicoué 2022-08-02 15:49:35 +02:00
parent 39466006da
commit f0f2633919
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<?php
return function ($pages, $page) {
// Get exhibition page object
$exhibitionsPage = $pages->template('exhibitions')->first();
// Get artworks files section content
$artworks = $page->files()->template("artwork")->sortBy('sort');
return [
'exhibitionsPage' => $exhibitionsPage,
'artworks' => $artworks
];
};