# Panel: Change the template

**URL:** <https://forum.getkirby.com/t/panel-change-the-template/1226>\
**Category:** Questions\
**Tags:** v2\
**Created:** [May 31, 2015, 6:00pm UTC](https://forum.getkirby.com/t/panel-change-the-template/1226 "2015-05-31T18:00:29Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![arielfierro](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/arielfierro/32/1294_2.png) [@arielfierro](https://forum.getkirby.com/u/arielfierro)\
**Post date:** [December 23, 2015, 11:58pm UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/21 "2015-12-23T23:58:06Z")

</div>

> [@Luke](#):
>
> An intelligent user can clean up old files when they’re done manually, and the “stupid user” is not even aware of their existence.

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 😝.

---

<div class="post-metadata">

**Author:** ![arielfierro](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/arielfierro/32/1294_2.png) [@arielfierro](https://forum.getkirby.com/u/arielfierro)\
**Post date:** [December 24, 2015, 12:18am UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/22 "2015-12-24T00:18:19Z")

</div>

> [@samnabi](#):
>
> I would like to see all data kept in the content.
> 
> Content should not be deleted on save, nor should be deleted during the template switch.  
> If template is updated, then the content will still be there.
> 
> I can’t see any downside to this, and I’d be wary of deleting any data that the user doesn’t specifically remove.

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

---

<div class="post-metadata">

**Author:** ![paulschwarz](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@paulschwarz](https://forum.getkirby.com/u/paulschwarz)\
**Post date:** [April 13, 2017, 10:16am UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/23 "2017-04-13T10:16:15Z")

</div>

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.”

> <https://github.com/getkirby/panel/issues/69>

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 13, 2017, 10:25am UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/24 "2017-04-13T10:25:41Z")

</div>

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](https://getkirby.com/docs/panel/blueprints/page-settings), defaults to true.

---

<div class="post-metadata">

**Author:** ![paulschwarz](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@paulschwarz](https://forum.getkirby.com/u/paulschwarz)\
**Post date:** [April 13, 2017, 11:31am UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/25 "2017-04-13T11:31:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 13, 2017, 11:55am UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/26 "2017-04-13T11:55:36Z")

</div>

Yes, looks like the home page is an exception…

---

<div class="post-metadata">

**Author:** ![paulschwarz](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@paulschwarz](https://forum.getkirby.com/u/paulschwarz)\
**Post date:** [April 13, 2017, 11:56am UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/27 "2017-04-13T11:56:56Z")

</div>

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

Thank you for your feedback any way

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 13, 2017, 12:17pm UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/28 "2017-04-13T12:17:33Z")

</div>

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

```auto
// /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;
    }

  }

```

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:50pm UTC](https://forum.getkirby.com/t/panel-change-the-template/1226/29 "2025-02-06T16:50:09Z")

</div>

Archived on February 6, 2025, 4:50pm UTC



[Previous page](https://forum.getkirby.com/t/panel-change-the-template/1226.md?page=1)
