I am just getting familiar with views 2 and its new interface, but I don't see any way to create a custom view of audio nodes. Any suggestions? Or is this feature still being developed for Audio 6?

Thanks in advance for any help with this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

silvercat’s picture

I'm interested in this too. I would like to have a views-field with the player embedded.

drewish’s picture

Title: Help getting Audio 6 to work with Views 2 » Add views2 support
Category: support » task

the views support hasn't been upgraded yet.

bomarmonk’s picture

Views 2 Release Candidate for Drupal 6 has now been released. This should at least provide the stability needed for other modules, such as audio, to develop their integration with views 2. I just thought I would note it here, just in case.

drewish’s picture

drewish’s picture

I just committed default views for audio.module and a couple of audio specific fields. Still a lot to get converted though.

monjohn’s picture

Thanks for working on this! I, for one, appreciate it!

vph’s picture

Thank you!!! I'm looking forward to audio working with D6 and Views2.

roger6106’s picture

I am also looking forward to Audio being completed for Drupal 6. It looks like exactly the module I've been looking for.

monjohn’s picture

Is it possible to expose the player or the "download this file" to views? I would like to make a view of the certain audio files with the titles, the player and the download link all listed in a table.

bomarmonk’s picture

You can do it with the old 5x version, so it's a matter of porting that functionality to 6x. I imagine views 2 is making this a more difficult transition (although I'm guessing views 2 is well worth it)

drewish’s picture

FileSize
2.3 KB

marked #347936: Views2 Sort by Audio Metadata as a duplicate.

committed the attached to HEAD. it adds support for the audio metadata.

Flying Drupalist’s picture

Subscribe, in field none of the meta data are links, they should be links that link to sorting by artist/album etc mechanism.

Also can you please add the player as a field? Thanks for your wonderful module.

Fr0s7’s picture

Ditto to #9:
- Audio player field for Views 2
- "Download" link field for Views 2

Thanks again for your work on this module. 5.x is wonderful, and I know porting to 6.x is a lot of work. Excellent job.

deviantintegral’s picture

Status: Active » Needs review
FileSize
4.18 KB

Here is a patch which adds a "download" and a player field. This is my first work on views 2, so there's probably some more work to be done here. It might be good to make the download text an option; right now, it's just a t()'ed string.

drewish’s picture

the download link looks fine but the player seems a little overly complex... maybe a few comments would help explain it?

Roulion’s picture

would be nice if we could have the image too.. withimagecache support as well ;-) !!!

thank you

rwohleb’s picture

FileSize
49.12 KB

This is a views 2 support patch, based on the patch by deviantintegral. This patch moves all views code into a views folder, to fit more inline with other contrib module handling of views. Additionally, this module adds custom link text support, as well as introduces a 'play' link field.

This patch removed all node_loads where possible. However, the 'player' field still requires a node_load per result due to the requirement of a full node object in all player theming functions.

criznach’s picture

I manually moved the views and handler files into the audio/views folder. Actually I copied because I wasn't sure if the handlers had to go too.

Now I get:

Error: handler for audio > player doesn't exist!

after I add the player field.

criznach’s picture

I could swear that I posted this already... I later moved the handler files into audio/views/handlers and everything seems to work.

elally’s picture

Subscribing

RWWood’s picture

Great job with the patch from #17. It gives the functionality I was looking for with views.

kjv1611’s picture

Subscribing

Flying Drupalist’s picture

Status: Needs review » Reviewed & tested by the community

Can this be committed please? I'm really bad with patches.

tvaughan’s picture

Yes, committing this one would be really helpful!

andrewfn’s picture

I have tested it and am running it on a production site. It would good if this was committed soon.

bcobin’s picture

I applied the patch in #17 successfully to the 6.x-1.x-dev version, but I still get broken/missing handler in Views. Seeing no views folder in the audio module folder, I then copied the views/handler files to audio/views/handlers - still no handlers.

Any ideas? I'd be glad to know how some folks seem to have gotten this working.... thanks much!

drewish’s picture

Status: Reviewed & tested by the community » Active

I did some cleanup on the handlers and committed those. The patch was moving all the broken views1 code into audio/views/audio.views*.inc which seemed kind of useless so I left the view1 code in audio/audio.views*.inc and moved all the views2 code out. This makes it easier to see what's left to be ported.

Marking this as active until the tag filter/argument handlers and can be ported to views2.

bcobin’s picture

So - just to be clear - using a player with an argument (which is required for doing a music search) will not be available in Views until the filter/argument handlers are ported, correct?

Thanks for the work you're doing, drewish - much appreciated!

drewish’s picture

i think there's some argument handling but IIRC things like the track numbers are wierd. i just rolled a new release so grab that and try it out.

roger6106’s picture

When using views and setting the option to rewrite the output of an audio field, the audio replacement patterns are "[value_3] == Audio: Track", "[value_2] == Audio: Title", etc. Is this part of this bug, or should I open a new bug?

kjv1611’s picture

By the way, I recently (within past couple weeks) finally updated to the latest Audio module release, and it's working great from what I noticed so far. Haven't had much time to mess with it yet, but so far so good! Thanks to drewish and any other developers who assisted!

theohawse’s picture

Hey guys, this is working fine for me, no problems with audio in views for me at all, except one little thing: audio playlists.

Looks like the guys below are stalled because the audio module is still labeled "unstable", hope this is a friendly enough bump!

http://drupal.org/node/393306

http://drupal.org/project/views_bonus

Awesome work!

yngens’s picture

subscribe

evoltech’s picture

The audio player flash controller is still not working for me in on the -dev or -unstable branch. Im guessing there was a revision on the -dev branch that was working for others and now it isn't?