Hi there
I’ve followed Kirby’s documentation on how to set up a simple blog and set up the Blueprint for Panel.
When creating blog posts I had 2 small problems I am hoping someone could help me with.
The first was that the date was not being applied to the article.txt for each post entry. I figured out renaming “Date” to “Published” in article.yml fixed this and dates now apply properly.
However, the “Published” date listed within article.yml is perfect and shows up on the front end fine - But right at the bottom of each article.txt (very last line) is a second date entry, titled Date
I was wondering how I could remove this?
The other problem is that when I select the Author in panel (I select myself, definitely selected fine) it’s not saved in article.txt - In fact it adds a random name/value for author - jvmgs7Nt
I’m not too sure how to address that one either
Apologies for the newbie questions - Still learning! If someone could help me out it’d be much appreciated.
This is the contents of my article.yml
title: Article
num: '{{ page.date.toDate("dmY") }}'
icon: 📖
status:
draft:
label: Draft
text: The article is still in draft mode. It can only be seen by editors with panel access.
unlisted:
label: In Review
text: The article is online and can be visited with the direct URL. The team must still give the final go to publish it.
listed:
label: Published
text: The article is online and listed in the blog
columns:
main:
width: 2/3
fields:
text:
type: textarea
size: large
sidebar:
width: 1/3
sections:
meta:
type: fields
fields:
Published:
type: date
time: true
default: now
Author:
type: users
tags:
type: tags
The contents of my article.txt
Title: Testing Post
----
Text: Test
----
Published: 2022-03-03 12:10:00
----
Author:
- jvmgs7Nt
----
Tags: test, tagtest
----
Date: 2022-03-01 12:02:27