Book Image

Drupal Multimedia

Book Image

Drupal Multimedia

Overview of this book

Table of Contents (16 chapters)

User-Created Embeddable Playlists


Finally, we'll briefly examine the possibility for user-created playlists. Specifically, we'll take a simple idea of allowing a user to mark his or her favorite tracks, and have them appear in a playlist suitable for listening at the user's own leisure or for embedding on the user's blog.

To allow users to mark their favorite tracks, the most suitable module for the task is Flag. There are others, notably Favorite Nodes, and the techniques should be similar if you choose to use another option.

First, install the Flag module available from http://drupal.org/project/flag. You'll add a new bookmark from Administer | Site building | Flags | Add (at /admin/build/flag/add):

After pressing Submit, you'll have several text fields to configure:

The Title is an administrative name for the flag, useful for separating this from others that might be on the site (such as favorite blog posts, stories marked for speedy deletion, and so on). We'll call this one user_playlists...