Hi,
I would like to make a cookbook website. Now the cookbook at Cookbook | Kirby CMS looks amazing, however… i can’t seem to find a way to create that.
I’ve tried using the GitHub - getkirby/getkirby.com: Source code and content for the Kirby website page, but when i login the panel, i can’t seem to find a way to edit the cookbook docs so i can really create recipes from the webinterface panel.
It only says “no blueprints found”.
Can someone help me out with creating and editing a cookbook site?
Love,
Psybis
The getkirby.com website doesn’t use the Panel, we edit the content files manually.
Steps to get you started:
-
Check out the documentation how to create blueprints and the examples
-
The getkirby.com cookbook page has several fields, you would have to define those (or the ones you need) in your blueprint.
So, to recreate the structure from the website, you would have the following content structure
/content
/cookbook
cookbook.txt
/category-one
cookbook-category.txt
/recipe-one
recipe.txt
...
So you need the following blueprint:
- cookbook.yml
- cookbook-category.yml
- recipe.yml
A very simple cookbook.yml
title: Cookbook
preset: pages
template: cookbook-category
Very simple cookbook-category.yml
title: Cookbook Category
preset: pages
template: recipe
And a recipe.yml
:
title: Recipe
preset: page
pages: false
fields:
description:
type: textarea
size: small
text:
type: textarea
size: small
sidebar:
meta:
type: fields
fields:
date:
type: date
time: true
default: now
author:
type: users
images:
type: images
headline: images
Then you also need the corresponding templates.
Depending on whether you need the categories as subpages, you could simplify the structure.