Panel: Change the template

I would not rely on user’s intelligence if possible.
I’d rather do some research first, and come out with a solution.
I would’t like to see lots of saved files everywhere.
I like safe bets :stuck_out_tongue_closed_eyes:.

Simple and straightforward.
Assuming there is no further downside, you have my vote :thumbsup:

Am I seeing it right, this feature has been implemented?

“The ability to change a page’s template/blueprint has been added to the development branch and will be part of the next release.”

1 Like

Yes that option is available since 2.3.0, I think.

This feature is available via the template page option: https://getkirby.com/docs/panel/blueprints/page-settings, defaults to true.

Thanks! Weird… I’m on 2.4.1 and can’t find it. Is it also valid for the home page?

Yes, looks like the home page is an exception…

Oh my… well… there’s where i needed it =(

Thank you for your feedback any way

Guess there is a reason, here is the code snippet where this happens:

// /panel/app/src/panel/models/page/options.php, #92

public function template() {

    if($this->page->isHomePage()) {
      return false;
    } else if($this->page->isErrorPage()) {
      return false;
    } else if($this->page->blueprint()->options()->template() === false) {
      return false;
    } else {
      return $this
        ->page
        ->parent()
        ->blueprint()
        ->pages()
        ->template()
        ->count() > 1;
    }

  }