What would be the best practice for this scenario?

A site admin runs a site like IMDB.com, most if not all movies have release dates but upcoming/unreleased/TBA movies have no official date set for a release. How could one add these options as available "dates"?

The only thing I can think of is theming the Date field. As in "if 'date' = "" then print "unknown release date" or something of that nature.

Is there an easier way to accomplish this?

Comments

karens’s picture

Title: Showing text in date field? » Add substitutions for empty date fields
Version: 5.x-1.8 » 6.x-2.x-dev
Category: support » feature

I'm not making changes to the 5.1 version. I'm officially recommending you move to the 5.2 version now. If you have problems in that version you can check for existing issues or add new ones. Feature requests are now getting posted to the D6 version to be back-ported to 5.2.

You can do this by customizing the date theme, but it could be a logical feature request to provide a setting to do this more easily.

vthirteen’s picture

could you please give an idea of how you'd theme date to have such a value for date? (unknown, missing or whatever you want to call it)

i suppose it's some conditional but i don't know php enough to implement the module.

thank you!

vthirteen’s picture

since i needed just a definite set of dates (years since 1930), i ended up creating a simple cck select text field, where one of the variables is "unknown".

uncomparable to the flexibility that real dates guarantees but enough for me in this case.

damienmckenna’s picture

Component: Date CCK Field » Code
Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.