I am stuck. I have a static html site, that I want to tranfer into Kirby. I have 3 pages with a topic:
Banana
Guave
Orange
——
Each page has 3 sections, so (apart from header/ footer etc.) the pages look like this:
Banana Infos
Banana Pictures
Banana News
—
Guave Infos
Guave Pictures
Guave News
–
Oranges Infos
Oranges Pictures
Oranges News
—
My site yml just has preset:pages.
I have 3 content folders:
3_Banana
4_Guave
5_Orange
—
Inside the 3 content folders:
banana.txt
Folder: „article-banana“
Inside: article-banana.txt
guave.txt
Folder: „article-guave“
Inside: article-guave.txt
oranges.txt
Folder: „article-orange“
Inside: article-orange.txt
All article-fruit.txt files have the fields:
Title:
Text:
Files:
Date:
Author:
Tags:
——
I made the corresponding blueprints in blueprints/ pages/
banana.yml
banana-article.yml
guave.yml
guave-article.yml
orange.yml
orange-article.yml
—
Since I copied the blueprints from the cookbook, I have
„ extends: sections/articles“
in the yml-files of the fruits. I guess this is the first source of mistake.
—
And I made the templates
banana.php
banana-article.php
guave.php
guave-article.php
orange.php
orange-article.php
—————————
Problems:
When I make a new post from the first level of the backend I can choose several article types, like banana-article etc. If I choose „banana-article“ I get the correct article type, but it chooses the template for the homepage. Also, it doesn’t appear on the banana page. Some with the other fruits.
So, I need to change - what?
Also I can choose article types of just „banana“. If I do so I can choose another article type called „article“ with the standart layout for subpages and files. Not the layout with the meta stuff, that I defindes in my „banana-article.txt“
Also I have to choose which position in the menu, which I don’t want.
Were? Did. I.Go.Wrong?
It feels like I chose the wrong way to achieve my goal.
PS: Later I want to change the post type of the pictures articles and I also need to figure out how to make the navigation work.