Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Date: Block Enhancement Ideas #24957

Closed
2 of 3 tasks
Tracked by #38533
alaczek opened this issue Sep 1, 2020 · 10 comments
Closed
2 of 3 tasks
Tracked by #38533

Post Date: Block Enhancement Ideas #24957

alaczek opened this issue Sep 1, 2020 · 10 comments
Labels
[Block] Post Date Affects the Post Date Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi Needs Design Feedback Needs general design feedback.

Comments

@alaczek
Copy link

alaczek commented Sep 1, 2020

Here are some ideas to improve the Post Date block:

  • add support for text styling options (bold, italic)
  • a couple more date formats? For example, dd/mm/yyyy and or mm/dd/yyyy
  • be able to include an icon - I know an icon could be inserted as a separate block, but that would require a columns block which feels like a bit much for such a simple thing?
@mtias mtias added the [Block] Post Date Affects the Post Date Block label Sep 1, 2020
@scruffian
Copy link
Contributor

This should also be able to link to the post permalink.

@annezazu
Copy link
Contributor

annezazu commented May 6, 2021

Related feedback came up in the fifth call for testing for the FSE outreach program:

Comments count and post publish date are without labels? What I mean are post meta labels such as “Posted on:”, “Written by:” and “Comments count:”. It would be also great to hide these accessibly if possible (or maybe ability to set CSS class for them?).

Making sure to close the loop here as part of enhancements to consider :)

@mtias mtias added the [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi label Jul 27, 2021
@mtias mtias mentioned this issue Jul 27, 2021
66 tasks
@mikeywil
Copy link

mikeywil commented Oct 8, 2021

An idea based on how I thought the block was going to work before I used it:

  • The 'Settings > General' page has an option for setting Date Format and Time Format for the site as a whole. Could this be factored into the Post Date block in some way? It might be the default setting, and/or one of the options.

@ohlauren
Copy link

ohlauren commented Dec 3, 2021

Three things I would really like to see:

  • an option to mimic the behavior of the_date(), where it is only displayed the first time a given date appears in the loop
  • related, the ability to change wrap the element in a heading tag
  • more format options - relative times (ie "2 days ago"), full date format with weekday, maybe a text field that accepts any PHP date format string?

@noisysocks
Copy link
Member

The 'Settings > General' page has an option for setting Date Format and Time Format for the site as a whole. Could this be factored into the Post Date block in some way? It might be the default setting, and/or one of the options.
maybe a text field that accepts any PHP date format string?

These two suggestions were implemented as part of #39209.

@ramonjd
Copy link
Member

ramonjd commented Nov 9, 2022

add support for text styling options (bold, italic)

Implemented in #35422 and #34064

@noisysocks
Copy link
Member

be able to include an icon

Could you elaborate on this? An icon of what? I'm curious what @jasmussen thinks too.

I'm kinda thinking we can close this issue in favour of future smaller enhancement requests.

@alaczek
Copy link
Author

alaczek commented Nov 21, 2022

Having an icon for the post-meta items is a popular design pattern. This is what I had in mind:
image
I think back when this issue was initially opened, we didn't yet have access to the row block, which makes it easier to achieve this than columns, so feel free to close if there are no other objections.

@noisysocks
Copy link
Member

Thanks, that makes sense. I'll close this out for now.

@jasmussen
Copy link
Contributor

Definitely a classic pattern. I like to think that at the moment, in-editor icon support is sparse and unrefined — you can choose one different alternative for menus, but that's it. Adding iconography across blocks is a valid enhancement, but one that probably needs a lot of careful thought, technical and designwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Date Affects the Post Date Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi Needs Design Feedback Needs general design feedback.
Projects
Status: Done
Development

No branches or pull requests

9 participants