How to create your own typed list This will illustrate all the steps needed to create a Books collection. It may seem to be a lot of work, but it's only becausa I have tried to explain this in detail :) *Important Note*: case IS important. CAT_Music is DIFFERENT from cat_music!!! 1. Copy plugins/currentlyaddictedto/class/dao/cat_music.class.php to cat_book.class.php (at this point, your web site gets down until either you complete this procedure or you delete CAT_books.class.php) 2. Open cat_book.class.php and change line 2 to: class CAT_Book extends CAT_Item { 3. Now decide which data you want to save. Delete lines 4 to 7, and replace them with a list of your data. For example: var $title; var $author; var $year; var $publisher; var $notes; var $amazonLink; We have added year and publisher, and deleted author. Some fields come for free (you don't have to add them) like the first permalink. You can add more links if you want: we will add an amazonLink pointing to the amazon book entry. 4. Now, replace line 11 with function CAT_Book() { 5. Change the banner, the empty message and the class type: Line 15: return 'My books'; Line 19: return "Not reading anything now"; Line 23: return 'CAT_Book'; 6. Change the remaining functions so that all the data you have added are listed. For example: function getData() { $a = array(); $a['title'] = $this->title; $a['author'] = $this->author; $a['year'] = $this->year; $a['publisher'] = $this->publisher; $a['notes'] = $this->notes; $a['amazonLink'] = $this->amazonLink; return serialize($a); } The rest should be as straightforward! Just pay attention to the permalinks, this is explained directly in the comments in the code. 7. Now you have to make the template for the admin area. Copy plugins/currentlyaddictedto/templates/cat_music.template to cat_book.template and open it. Then, locate this line:

Music items

and replace it with:

My books

8. You just have to change the fields listed there. A field is composed by a snippet like the followind. Delete it from the original, as it is refering to a field we have deleted: Album and add instead the other fields we've added, like: Publisher 9. Now you should see an item called like the banner you've set before in the CAT plugin items selection. If you do, try adding some items to see if everything works. Then move ahead to write the template on the user side. Just follow the gray example, it should be easy enough. For your reference, the books list is included in the distribution. *******************************************************************