curious whether I am doing something wrong or whether the following is a bug. To me it seems that $page->modified() is not working as expected when date.handler is set to strftime.
It just returns the format string in my setting.
To reproduce:
Set date.handler to strtime in config (‘date.handler’ => ‘strftime’,)
Access $page->modified() or a part with a modified datetime in the panel.
See that the date is not displayed, rather just the format string.
Versions: had the issue with 3.2.3 and still have it with 3.2.5.
To test:
add the following to the template or HTML head snippet:
Thanks for the insights. I copied that part of blueprint from somewhere, can’t remember where. The display is not important – sorting works, the rest is just a nice view or not (but as it’s only admins, it’s really not a big issue). Not worth investigating much for me.
To be honest, I did not really look into it – and I only partially understand the blueprint topic at the moment. I copied from a blog instruction. The only thing important to me is that the sorting is working (which is probably what the sort line does). Anyway, the sorting (and thereby everything that is really needed) works and I will see when I will have a closer look at the topics. My implementation certainly has more issues which I will slowly try to fix.
The full blueprint looks like this
$ cat site/blueprints/pages/blog.yml
title: Blog
icon: 📚
pages:
template: article
sort: datetime desc
num:
mode: datetime
field: datetime
format: YmdH
display: %Y-%m-%d-%H
columns:
left:
width: 1/2
sections:
drafts:
extends: sections/articles
headline:
en: Drafts
de: Entwürfe
status: draft
create: article
unlisted:
extends: sections/articles
headline:
en: In Review
de: In Redaktion
status: unlisted
listed:
extends: sections/articles
headline:
en: Published
de: Veröffentlicht
status: listed
right:
width: 1/2
fields:
text:
type: textarea
label:
en: Text displayed on top
de: Vorangestellter Text