Skip to content

Mark a field as deprecated #15632

Closed Answered by brandonkelly
ryanleichty asked this question in Ideas
Discussion options

You must be logged in to vote

Just added the ability to set tips and warnings on fields within field layout designers, for Craft 5.4 (1d3658d).

I think this makes more sense than an explicit “deprecated” field concept for a couple reasons:

  • More versatile (there are a number of reasons you may want to warn authors about a particular field).
  • “Deprecated” is developer lingo. Kindof doubt most authors would understand what it means, and there’s no good reason to start teaching them, when a more verbose explanation is likely needed anyway.

Here’s an example, combined with a condition that hides the field entirely when it doesn’t have a value:

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ryanleichty
Comment options

Comment options

You must be logged in to vote
3 replies
@mmikkel
Comment options

@ryanleichty
Comment options

@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants