Hi, I cant select any other page except “default” when creatin a new page from panel. I can only do this with ftp. I checked blueprints too. it seems no problem. can anyone help?
You need to change the settings in site/blueprints/site.php.
title: Site
pages: default
fields:
title: ...
Remove the line pages: default
.
still cant create box is unselectable still
Are there any other blueprints in /site/blueprints?
yup
-default
-error
-home
-project
-projects
and
-site
Ok, where do you want to create new pages, on the first level or within a subfolder? Check if the blueprint of the page you want to add to has set pages: false
.
first level. I want to crate a Projects page. But I cant. Looked projects.php and “pages:” not set “false”. it is empty.
Hm, this is strange. If you want to create a page on the first level, i.e. next to /about, /projects, /contact, etc., then you have to look into the site.php blueprint. In the original starterkit, it looks like this:
<?php if(!defined('KIRBY')) exit ?>
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
Now you can do any of three things:
- completely remove the line
pages: default
- set pages to true:
pages: true
- or define some templates that may be used on the first level like this:
...
pages:
template:
- projects
- default
- ...
...