-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Data views: Improve title display for untitled records #56154
Comments
Good catch, there needs to be some text there to indicate what's up. This seems like a problem where we can look at other platforms, just as a quick example, an email with no subject shows up in Gmail as I think we can do better than Have there separately been any thought given to showing a brief snippet of text from the post itself? Like how in Gmail it shows first the subject, and then the first elided line of text from the email in the next column? |
"Untitled [post-type/format]" seems good to me.
We could include a view option for the excerpt. Might be worth a ticket. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hi folks, |
Your suggestion sounds good to me. Show |
Ok, so it turns out that we have the right logic in place but that for some reason the "pages" endpoint returns "Private:" as rendered title for private pages with empty titles. |
It's not clear to me what the exact path forward is here but I opened this trac ticket to get more information and figure out what needs to be done https://core.trac.wordpress.org/ticket/61639 |
Going to close this in favor of the core ticket as it's going to be solved there. |
I still think "Untitled $post_type" would be better than "(no title)", if trivial to implement. |
It's trivial to implement but I think consistency prevails personally. If we ware to show "Untitled $post_type", I think we should show It everywhere and not just dataviews and I believe that is a different issue with a larger scope. |
In data views, records without a title appear as "(no-title)". If they're also private they appear as "Private: ". It would be good to improve and align this.
Untitled public records should ideally appear as "Untitled $post_type". Private records can be denoted via badge, (similar to #57763):
Original issue
If a page is set to private and has no title, it appears like so in the pages data view:Regular title-less pages display a 'no-title' string:
We might use that in this scenario too, IE: "Private: no-title".
Bonus points if that string can display as "No title", or perhaps "Untitled". cc @WordPress/gutenberg-design for thoughts on that. For reference in wp-admin title-less pages are displayed as "(no title)".
The text was updated successfully, but these errors were encountered: