Skip to content

Looking for suggestion on how to use publishTime as admin title #623

Answered by jmikrut
andwrobs asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Andrew-Roca - good questions!

I don't see why date-like fields couldn't be utilized for useAsTitle - this could probably be enabled with a few checks on the frontend to make sure that the data is rendered properly if it is an incoming date. Might not be too tough.

We could also certainly add validation rules to check and ensure that useAsTitle is set to a field that is able to be utilized properly. It would check to see if the field is text, textarea, email, number, and - if we ironed out a way to sanitize the incoming data, the date field could be added to that list.

I'm not sure when the Payload team could get to the above features, but it's certainly interesting. We would happily …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andwrobs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants