Here’s a oddity that caused me a bit of grief this weekend - blogged in the hope that search engine goodness will save someone else some hair pulling.
New date formats configured through the Date module aren’t made available through Views immediately.
To reproduce the problem:
- Log onto your site as user with administration rights.
-
Go to Administer Site Configuration Date and Time Formats - Add a new format type
-
Go to Administer Site Building Views - Edit your view of choice
- Select any date Field and drop down the list of available Formats
You’ll see that your new format isn’t listed.
Workaround
-
Go to Administer Site Building Modules - Press Save (no changes are necessary)
Now, you’ll find that the new format is available.
It seems that either Date isn’t sending the right notification to Views that a new format is available, or Views is caching the list of available formats too aggressively.
Versions:
- Drupal 6
- Date, DateAPI: 6.x-2.2
- Views, Views UI: 6.x-2.5
Comments
blog comments powered by Disqus