Drupal 7: Field API

Ein Posting bei Public Action demonstriert was mit der neuen Field API in Drupal mit relativ wenig Mühe möglich ist.

This article is intended for programmers. We build a proof-of-concept module who’s sole purpose is to demonstrate features of the Drupal 7 Field API. (…) Our new module is called “my date”. We add several new features: the ability to style the date display; better control over the default date values; use of the JQuery date picker widget to select dates. (…) I broke each of the date instances in to 4 HTML div elements: container, month, day, year.
In addition, each of the date parts (month, day, year) can be toggled on or off (displayed or not displayed).
I also allow an HTML style attribute to be applied to each HTML element. Again, that is the container div, month, date, year.
The date can be aligned (float) either right or left.
You also have the option of choosing a back ground image.

Possibly related posts (automatically generated)