Different blueprints same template

It is also possible to register your template for different models using the registry.

// Assuming you have a template called list.php
$kirby->set('template', [
  'jobs',
  'events',
  'resources',
  'news'
], $kirby->roots()->templates() . DS . 'list.php');

On top they would all share the same controller.

7 Likes