Simple Blog - Using Panel To Create Posts - "Author" wrong and Double Date Issue

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 :slight_smile:

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: '{{"dmY") }}'
icon: 📖

    label: Draft
    text: The article is still in draft mode. It can only be seen by editors with panel access.
    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.
    label: Published
    text: The article is online and listed in the blog

    width: 2/3
        type: textarea
        size: large

    width: 1/3
        type: fields
            type: date
            time: true
            default: now
            type: users
            type: tags

The contents of my article.txt

Title: Testing Post


Text: Test


Published: 2022-03-03 12:10:00



- jvmgs7Nt


Tags: test, tagtest


Date: 2022-03-01 12:02:27


i am not sure about the date field. Maybe it’s there because of the num in your blueprint.

The user field stores the user object, not the Name.
See the docs for details

You changed the field from date to Published. The old date entries are probably from older saves. Kirby does not delete entries in the .txt files from non existant fields, I believe.

I think that’s the user id. Since your name or email adress can change Kirby needs a persistent reference.
Have a look in your site/accounts folder, there should be a folder named jvmgs7Nt. That’s you!

You still use date here, but have renamed your field, so you need to change this, otherwise it only works if the old date field information is still present in the text files.

I don’t really understand why you renamed the date field in the first place.