I currently upgrading an old kirby 2 project to kirby 3, while following guide to updating to Kirby 3. However, I ran into a problem while trying to display the pages. I know that by default, adding pages etc. is disabled so I tried enabling this within the .yml file.
This is the head of my site.yml:
# So I tend to use subpages, but I am unsure of how this goes into practice within site.yml
- title: Landing
# This I got from the starterkit
# These are fields that have been migrated from my Kirby 2 project
. . .
I am unsure whether I am doing something fundamentally wrong or just missing something.
It is indeed a multi-language site, with existing contents. As shown in guide I upgraded this. Also, I indeed saw in the guide that a hook needed to be added for the subpage builder.
I did fix the t.language error. It seems that there was something wrong with my initial save. After removing the modal in the html and clicking save button (which was shown below the overlay but disappeared as I clicked on the modal).
But still, I don’t get anything to show, unfortunately.
Ok, the blueprint setup is missing the sections keyword. I think you should check out the Starterkit’s site.yml.
pages: # a pages section which lists pages with the given templates/blueprint
fields: # a fields section
type: fields # the type is optional if the section is called fields, but you can only have one section with that name, if you need more, you have to give them other names and add the type.
That’s still basic, you probably want to use columns for a more structured layout.
Edit… It is quite obvious what the problem is. Somehow my content text files were renamed during the upgrade. After changing the about.nl.en.txt to about.nl.txt it showed up immediately.
Yet I still cannot add it as a new page with this template in the site settings