Subfolder + template

Hello everyone!

I am very newbie and i am still struggling with the basics:

I want to use a kind of “thank-you” template for possibly multiple subpages. And I am not able to make it work. It works when i put the folder on the base level of the content, but if iam making it a subfolder of another folder I am forwarded to the error page.

What am I missing ?

Not sure I understand the problem. Your danke page is a subfolder of mitglieder now and should be accessible in the browser via yourdomain.xyz/mitglieder/danke

Maybe you can provide more detailed information what exactly does not work?

Thanks for the effort. I caused the problem myself:

I setup a protection for the whole folder, by following this:

<?php

use Kirby\Cms\Response;

Kirby::plugin('cookbook/files-firewall', [
  'routes' => [
   [
      'pattern' => 'mitglieder/(:any)',
      'action'  => function ($filename) {
        if (kirby()->user() &&
          ($page = page('mitglieder')) &&
          $file = $page->files()->findBy('filename', $filename)) {
          return $file->download();
        }
        return site()->errorPage();
      },
    ],
  ],
  // …
]);

Having that code in place always forwarded me to the error page I and didn´t make the connection. Thanks for your time and effort again. :innocent: