# Bydefault redirected to default template

**URL:** <https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001>\
**Category:** Questions\
**Tags:** v2\
**Created:** [August 17, 2016, 12:26pm UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001 "2016-08-17T12:26:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 17, 2016, 12:26pm UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/1 "2016-08-17T12:26:58Z")

</div>

hello eveyone here is  
here is my file structure of my content from panel side

```auto
dashboard : 
    header:
         MY PURPOSE
         BLOG
         GET SOCIAL
         CONTACT ME
         INTERVIEWS
         PROJECTS
         WHO AM I?
    home:
         wisdom
          video
           news:
                     example 1
                     example 2
                     example 3
           get social
            gallery
           get-in-touch
    interviews 
    footer

```

my problem is i am bydefault redirected to default template .  
how can i add new page in template ? i have already mention template name in blue print also

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [August 17, 2016, 12:46pm UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/2 "2016-08-17T12:46:00Z")

</div>

I’m sorry but I don’t really understand what the issue is. What do you mean with “redirected to default template”?

---

<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:** [August 17, 2016, 1:07pm UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/3 "2016-08-17T13:07:18Z")

</div>

Do you mean the panel only shows the fields of the default blueprint after saving? Or is your content rendered only with the default template in the frontend?

Maybe you could post your file structure with folders and filenames and your templates.

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 19, 2016, 4:18am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/4 "2016-08-19T04:18:48Z")

</div>

i have created new blue print that is interview.yml

```nohighlight
  title: Interview
  pages:
    template: interview
  files: false
  fields:
   title:
    label: Title
    type: text
   text:
    label: Text
    type: textarea

```

when i add new page interview

> **[Kirby Starterkit | Panel](http://www.awesomescreenshot.com/image/1495296/1798f3e173c9bb41d80d49556aa60d34)**
>
> Awesome Screenshot

i am not redirected to interview template.

---

<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:** [August 19, 2016, 5:13am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/5 "2016-08-19T05:13:33Z")

</div>

I still don’t understand what you mean by “redirected”. What exactly happens when you create a new page with that template?

BTW: Do you really want the children of that page to use the same blueprint/template?

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 19, 2016, 5:17am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/6 "2016-08-19T05:17:25Z")

</div>

i have listed my blue print above and i have template having same name. how can redirect to interview,php(my tempalte.php file)

just like in demo when we click on the projects we redirect to the projects.php

my work is when i click on “interview” i need to redirect to my template interview.php but i am redirected to default.php

---

<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:** [August 19, 2016, 5:21am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/7 "2016-08-19T05:21:47Z")

</div>

You mean when you click on the link in the menu on the frontend?

Pls. check the folder of your interview page: is there a file called interview.txt in it? If so, are there any other textfiles in that folder?

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 19, 2016, 5:27am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/8 "2016-08-19T05:27:56Z")

</div>

yes, there are many files in that but right now i have just included just header and footer in interview.php template.

i hope you understand my question.

here is in more detail .  
here is my default page. that is [http://localhost/starterkit](http://localhost/starterkit)  
[http://www.awesomescreenshot.com/image/1495409/0599ecc4806dc16a17b975caa28d02f3](http://www.awesomescreenshot.com/image/1495409/0599ecc4806dc16a17b975caa28d02f3)  
and here is my [http://localhost/starterkit/interviews](http://localhost/starterkit/interviews)  
[http://www.awesomescreenshot.com/image/1495415/89619bfaf815592c17cb3fe5076e6f79](http://www.awesomescreenshot.com/image/1495415/89619bfaf815592c17cb3fe5076e6f79)

every time i am redirected to default.php in template

---

<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:** [August 19, 2016, 5:40am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/9 "2016-08-19T05:40:57Z")

</div>

You probably don’t mean you are edirected but the interview page is rendered with the default.php template?

However, those two pages in the screenshots look pretty different to me, so I don’t see how the second relates to the first.

But again: Is there a file called interview.txt in your interview folder? Is it the only text file in that folder or are there several text files?

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 19, 2016, 5:45am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/10 "2016-08-19T05:45:42Z")

</div>

i think you are still not getting my question.  
[http://www.awesomescreenshot.com/image/1495439/18359f866312e518ff34b27ac991e6af](http://www.awesomescreenshot.com/image/1495439/18359f866312e518ff34b27ac991e6af) here is my whole page . in this page whenever i click on any link same page is opens .

i have many pages in template folder but default.php page is called every time.

now i hope you get it my problem

---

<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:** [August 19, 2016, 5:49am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/11 "2016-08-19T05:49:00Z")

</div>

You are right, I don’t get it, but I was asking about the interview folder in **/content** and your text files, **not** your templates folder. And I’m afraid I can’t help you if you don’t answer my questions 😔

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 19, 2016, 5:51am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/12 "2016-08-19T05:51:33Z")

</div>

yes sir, now i got my solution.  
in my content interview folder default.txt file is generated. i renamed it in interview.txt and now i am redirected to interview,php 🙂

thank you so much for your valuable time and i am extremely for my silly question. thank you so much again. 🙂

---

<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:** [August 19, 2016, 5:54am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/13 "2016-08-19T05:54:07Z")

</div>

Glad it is solved now 🙂

You probably did not select the correct template when creating the page. Or your site.php blueprint does not allow the creation of pages with other blueprints than default.

The site.yml file from the starterkit limits subpages to default, you can either remove that setting to allow all blueprints/templates or include a list of all allowed templates.

```auto
title: Site
pages: default
fields:
  title:
    label: Title
    type: text
  author:
    label: Author
    type: text
  description:
    label: Description
    type: textarea
  keywords:
    label: Keywords
    type: tags
  copyright:
    label: Copyright
    type: textarea

```

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 19, 2016, 6:01am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/14 "2016-08-19T06:01:46Z")

</div>

so ,how can i do this ? in my current project structure every content folder is generating default.txt instead of proper file name.

## here is my default.yml title: Page pages: true files: true fields: title: label: Title type: text text: label: Text type: textarea

home.yml

title: Home  
pages:  
template: home  
files: true  
fields:  
title:  
label: Title  
type: text  
text:  
label: Text  
type: textarea

* * *

## title: Interviews pages: template: interviews files: false fields: title: label: Title type: text text: label: Text type: textarea

site.yml

title: Site  
pages: default  
fields:  
title:  
label: Title  
type: text  
author:  
label: Author  
type: text  
description:  
label: Description  
type: textarea  
keywords:  
label: Keywords  
type: tags  
copyright:  
label: Copyright  
type: textarea

---

<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:** [August 19, 2016, 6:05am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/15 "2016-08-19T06:05:17Z")

</div>

In your site.yml, either simply set

```auto
pages: true

```

or

```auto
…
pages:
  template:
    - project
    - article
    - contact
    - inteview
…

```

instead of

```auto
pages: default

```

BTW: to improve readability, pls. enclose blocks of code within three backticks before and after the code block on a separate line. Thank you!

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 19, 2016, 6:06am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/16 "2016-08-19T06:06:40Z")

</div>

yup…got it…aswome. i am very happy. thank you so much again. great platform 🙂

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 20, 2016, 7:02am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/17 "2016-08-20T07:02:14Z")

</div>

hello @texnixe ,  
i am facing one issue that is explained below.

```
dashboard :
     projects:
        wisdom:
         news: 
              simple-tips
              chantal-rahme
             floring
              read-this
     header:
        MY PURPOSE
        BLOG
        GET SOCIAL
        CONTACT ME
        INTERVIEWS
        PROJECTS
        WHO AM I?
    home:
      wisdom
      video
       news:
                 example 1
                 example 2
                 example 3
       get social
        gallery
       get-in-touch
interviews :
footer:

```

in template , can i create projects folder? if yes then how can i redirect it to that folder ? so that i can display different projects pages from that folder

---

<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:** [August 20, 2016, 11:08am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/18 "2016-08-20T11:08:03Z")

</div>

I’m afraid I don’t really understand your question. I guess what you are showing above is your folder structure?

Do you want to display projects from the projects folder in another page? Maybe you can rephrase your question somehow?

---

<div class="post-metadata">

**Author:** ![Dhamu143](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dhamu143/32/2768_2.png) [@Dhamu143](https://forum.getkirby.com/u/Dhamu143)\
**Post date:** [August 20, 2016, 11:10am UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/19 "2016-08-20T11:10:40Z")

</div>

i have solved that with making another yml file. i think we need to make separate yml files if we need to add pages

---

<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:55pm UTC](https://forum.getkirby.com/t/bydefault-redirected-to-default-template/5001/20 "2025-02-06T16:55:23Z")

</div>

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


