I am starting to have a problem with the teaser view of the audio playlist module getting too big. Theming of these lists is accomplished through the function phptemplate_audio_playlist_body(). The trouble is my play lists are huge. I have 37 audio files in one of my playlists now and they will keep growing. I use a different play list for each pastor/preacher at our church. I need to limit the number of entries in the teaser views to say 20 or 30 and have a way to go to the next page like the audio module does when listing audio content. I want to do this because I have a flash player embedded in each teaser view and too many of them will cause some browsers trouble (not to mention the time loading the page). I would like to use the playlist module for this since it adds a lot of other wonderful features. To see an example of my issue, please see http://www.pittsfordcc.org/sermoncollection/rev_dr_dana_goodnoughs_sermo.... This is the teaser view of the play list. I made a few text changes to the function in my template.php file to better represent my specialized audio content, but nothing really different from the original module function. Is this something I can accomplish by changing the phptemplate_audio_playlist_body() function? If so, how.

Anyone have any thoughts on this?

Thanks

Rich
(rl)

Comments

zirafa’s picture

Hi, are you running Drupal 5? I noticed you have the Garland theme.

If you know some PHP:
Paging is accomplished through the pager_query function which basically limits the number of query items to return, and then the pager numbers are generated by calling theme_pager in the theme.

Simpler solution:
The way the module currently works it returns all the playlist items at once. One idea for limiting the number of playlist items would be to try and do a Javascript break/toggle every 10 items.

I haven't had time to maintain the 4.7 branch, anybody that wants to please contact me.

rl’s picture

Thanks for the reply. I am running 4.7.6. I back ported Garland so that I would not have to develop two themes. When I switch to 5.0, users won't see a change. I am waiting for things settle down with the audio playlist stuff on 5.0. I will switch later.

I will investigate the pager_query and theme_pager functions. Thanks for an initial start. Any links to Javascript break/toggle info would be appreciated. I will post my results here when I get a solution going.

Thanks again zirafa.

Rich

zirafa’s picture

Status: Active » Closed (won't fix)

This module at this version is no longer maintained. See http://drupal.org/node/113750 for more information and upgrade possibilities.