Recipe 27: Displaying Guitar Chords
Note
Ingredients
Content module: http://drupal.org/project/cck
Guitar module: http://drupal.org/project/guitar
Field formatters—such as the link formatters used in the two previous recipes—are available for a wide variety of modules. Musicians may be glad to know of a field formatter in Drupal that generates guitar chord diagrams.
Ensure that the CCK Content module is enabled in
admin/build/modules
.Enable the Guitar Chord Diagram Generator and Guitar CCK Field modules that come with Guitar. You may also choose to enable the Guitar input filter.
Create a new Chord content type at
admin/content/types/add
, and add a field called chord atadmin/content/types/chord/add_field
.Populate the content type at
node/add/chord
. The Chord Name may match the Node Title.Notice that the Notes field calls for a comma-separated list of numbers indicating the pressed frets on the guitar.
Create a View at
admin/build/views/add
.Name
chords
Description
Guitar chords chart
Provide...