Cchost/developer/tutorial/Featured Playlist
Overview
ccMixter is a site focused on audio but the 'playlist' feature is just a matter of wording. For an image site the same feature would be called 'gallery' or in a video site it would be called 'channel.'
This tutorial walks through the implementation of an admin feature in ccMixter that with one click will add a playlist to the Featured Playlists page. It covers event handling, URL mapping, customizing command menus, database insert and browser redirect.
Feature Spec
The 'Featured Playlist' page in ccMixter is page created by using the Content Manager with a topic type of 'feat_playlist'. Once a week the admins on the site would create a new topic, copy from the previous week's featured playlist, change a number in a query and post the new topic. The exact same operation (approximately 20 clicks, a copy/paste and submit) every week.
The idea behind this feature is to put a menu on a playlist (example playlist) that with a single click, automate the entire process.
The Code
In order to add a menu item to the playlist menu we first have to create a dataview filter event handler. (Find out how that was determined.)