I don’t have a config folder in my /site/. I tried creating the file and path manually, but this broke my html.
Are the docs outdated? I’ve only been using Kirby for a couple weeks.
I don’t have a config folder in my /site/. I tried creating the file and path manually, but this broke my html.
Are the docs outdated? I’ve only been using Kirby for a couple weeks.
No, the docs are not outdated, if the file does not exist, you need to create it in the correct path, /site/config/config.php. But please post what you tried, maybe there is a syntax error in the file.
Thanks! That info would be good to have in that doc I linked above.
After some digging I discovered I made 2 changes at once. Causing me to think the error was due to the config, and not the other change I made. Sorry about that.
My issue was the finicky syntax of the content files. I haven’t started building a custom panel yet, so I’m just editing the txt-files for now.
I discovered you can’t start a block of text on the next line if the property is a subproperty. So this is illegal:
Info:
-
Image: image.jpg
Text:
Lorem Ipsum: dolor sit amet.
-
This is not the case if the property is a main property. So this works afaict:
Title: Project name
----
Description:
Lorem Ipsum: dolor sit amet.
----
Which makes sense, because subproperties are demarked by a new line and main properties are demarked by [edit] four dashes.
But then how can we have multiple paragraphs in a subproperty?
Title: Sky
----
Cover: - file://9APZDUNsDTbHMMTZ
----
Headline:
----
Subheadline: Stars and the universe and so on
Multiple paragraphy in a structure:
Event-builder:
-
text: |
bla bla bla
bla bla bla.
otherField: some more text
-
text: |
Single line paragraph
text: >
bla bla bla