I am upgrading my website from version 3 to version 4. I have never used the panel before, and for the first time I’m configuring it with blueprints. I want to learn how to configure it for another project and using my website as an exercise.
In my blog.yml page I have a section like this:
sections:
listed:
sortBy: date desc
headline: Listed
type: pages
layout: cards
template: note
info: "{{ page.timestamp }}"
status: listed
help: Listed
and I’d like to add also the author name, so I’m trying this:
info: "{{ page.timestamp }} {{ page.author.name }}"
and I get the timestamp and an ID, similar to:
2024-02-04 01:45:00 - user://abcd1234
If I print the author name in the post.php template with:
<?php if($user = $page->author()->toUser()): ?>
<p>Author: <?= $user->username() ?></p>
<?php endif ?>
The author name is printed, but I’m wondering if it is possible to have the author name also in the text file, instead of:
Author: user://abcd1234
Ideally I’d like to have the timestamp and the author name on 2 separate lines, but \\ or \n are not
Thanks for any suggestion.