mp3 and audio fields for CCK

ARDAS - September 11, 2006 - 17:00

Guys !

I recently relized that CCK module is even more important than the Drupal kernel :) I was using flexinode in all my other solutions and would like to migrate to CCK. Unfortunatly, I can't do it untill CCK has mp3 field like it was in Flexinode 4.6

I noticed that field_mp3.inc was excluded from Flexinode 4.7 but I took it and redeveloped for 4.7 ( I'll share it with Flexinode authors later after some testing).

I'm now thinking about having such field for CCK ... as well as audio field (which is not so important right now).

I downloaded audio.module and was slightly disappointed because of the following:
1. Album, Style tags should be implemented using taxonomy free tagging but not audio native tags.
2. 'audio' node type isn't extensible (because it was not developed on a CCK/Flexinode basis).
3. audio_attach.module and audio_images.module are superfluous if you are using CCK/Flexinode with image and audio fields.

audio.module has several greate things one of which is audio embedded player.

Here is the question: is anybody working on something like audio field for CCK ? If not, I propose to start a thread to collaboratively discuss it, so I'll develop it in the nearest future.

Thanks.

I could be wrong

Tresler - September 11, 2006 - 17:15

But I believe the great benefit of audio.module is that it integrates very nicely with the Get ID3 library. Something CCK and flexinode can't do.

Sam Tresler
http://www.treslerdesigns.com

field_mp3.inc for Flexinode

ARDAS - September 11, 2006 - 17:42

field_mp3.inc for Flexinode 4.6 also uses GetID3 library and analyzes mp3 file to find out mp3 header info.
Of course, my implementation of field_mp3.inc for Flexinode 4.7 also uses GetID3.

And of course this wonderfull library should be used in future CCK mp3 field ...
----------------
Regards,
Dmitry Kresin, ARDAS group (www.ardas.dp.ua)

I did say...

Tresler - September 11, 2006 - 18:10

That I could be wrong. LOL. Good luck.

Sam Tresler
http://www.treslerdesigns.com

yes!

schwa - September 12, 2006 - 15:43

Hi Duke,

No talent to share (can send chocolate), but a big thumbs up for this project! Would be very desirable in my installs, since I'm equally stuck with 4.6 + Flexi vis-a-vis mp3 files & would like to be running 4.7 + CCK.

Nice, that I'm not the one

ARDAS - September 13, 2006 - 14:51

Nice, that I'm not the one who need it :)

I read other audio filed+CCK threads and after I looked into CCK development plan I realized that noone is working on such field now.

Since, I don't like audio module, I have redeveloped field_mp3.inc for Drupal 4.7 and improved it a little. I'm using it now and can say that it is much more convinient that trying to customize a huge audio.module. I have a node type 'song' with lots of my own specific fields, mp3 field to represent the song itself, image field to represent the song image, its specific template, genre&styles free tags are implemented using native taxonomy and the only thing I'm dreaming is to have the same abilities for CCK :) And the only thing left is audio field itself (looks like image field becomes quite good but I didn't study it in details yet).

Looks like nobody is interested in field_mp3.inc 4.7 because of CCK. So, I'll be glad to make audio field for CCK (may be in a month when I start the project where I'll need it) if noone will do it before :)
----------------
Regards,
Dmitry Kresin, ARDAS group (www.ardas.dp.ua)

Audio+Video fields for CCK

ARDAS - February 2, 2007 - 13:21

Hello,

They are release for Drupal 4.7 and almost finished for 5.0
www.drupal.org/project/mediafield
----------------
Regards,
Dmitry Kresin, ARDAS group (www.ardas.dp.ua)

How to attach audio to cck

9802008 - October 23, 2006 - 10:11

This was not immediately obvious to me:

* install cck
* create the content type you require
* install audio.module
* go to admin/settings/content-types and edit the cck type you just created. Enable the option at the bottom of the page - 'attach audio files'

www.johnstonwebsolutions.com/we_install_modify_and_maintain_drupal_web_s...

Great tip!

discursives - December 14, 2006 - 06:23

It's true, its really easy to add audio to a CCK type, but I seem to be making some error in my node-content.tpl.php files because no matter what I have done so far I cannot seem to get the audio information to print on the screen once I have installed my tpl.php file.

Can anyone tell me what I am missing? I posted a new forum topic on this here: http://drupal.org/node/103217

I have tried a number of things. What variable shoudl I be 'printing'?

Was this for 4.7? On 5 I've

joachim - February 18, 2007 - 13:58

Was this for 4.7?
On 5 I've got CCK, audio module, and a custom content type, and I don't see that option to attach audio files.

me too

mrtunes - March 12, 2007 - 22:20

i dont see that option either - i'm on v5

mediafield module has been

ARDAS - August 2, 2007 - 08:16

mediafield module has been released for CCK.
Please try it.
----------------
Regards,
Dmitry Kresin, ARDAS group - Drupal web sites development, IT outsourcing

You need to go to your

schwa - March 15, 2007 - 12:20

@ joachim/mrtunes
You need to go to your settings for content types and enable attachment of audio files for the types of nodes you want audio fields on.

The mediafield module is nice, but doesn't have a built-in player like audio.module, correct?

Exactly! We are now

ARDAS - March 16, 2007 - 16:49

Exactly! We are now discussing video architecture and came to a decision that playing media should be implemented in a separate module, try coolfilter.module for instance.
----------------
Regards,
Dmitry Kresin, ARDAS group (ARDAS group)

yes those built in players

bjraines - May 6, 2007 - 19:41

yes those built in players are nice.

any way to implement them with CCK?

also is it possible for it to have an import setting instead of having to upload every video?

As I know there already must

ARDAS - May 10, 2007 - 10:18

As I know there already must be some kind of video aggregator or import which creates video nodes or something like that.
----------------
Regards,
Dmitry Kresin, ARDAS group (ARDAS group)

Can't attach to CCK content types

colan - August 2, 2007 - 02:21

In Drupal 5.2, there does not exist any option in /admin/content/types/my-content-type to attach audio files. I've looked all over and checked my permissions. Am I missing something? Do I need some extra module on top of just audio.module? I don't need the ID3 stuff so that's disabled, and I've got 5.x-1.2 of the audio module.

It seems like other folks have been getting this options somehow, and I'd really like to use it.

Any help would be appreciated. Thanks!

If you are using audio CCK

ARDAS - August 2, 2007 - 08:53

If you are using audio CCK field module there should be a TAB 'Add new field' or something like that.... It is used to add any field to content type. If you use audio module audio files will be added on the node edit form.
----------------
Regards,
Dmitry Kresin, ARDAS group - Web site development, Drupal services, Software development, IT outsourcing.

Looked at code

colan - August 2, 2007 - 16:35

I just looked the the audio.module code. All of the hook_nodeapi() code is wrapped in:
if ($node->type == 'audio') { }

So there's definitely no way audio.module will work with other CCK content types. Looks like I'll be using your Media Field module. Thanks!

I've never worked much with

ARDAS - August 3, 2007 - 08:20

I've never worked much with audio and video modules but I heard that video module allows attach video files to other node types. I wonder, whether audio module can't do it???

----------------
Regards,
Dmitry Kresin, ARDAS group - Web site development, Drupal services, Software development, IT outsourcing.

Did you try to use

ARDAS - August 3, 2007 - 08:24

Did you try to use audio_attach.module which must be packaged together with audio.module?

----------------
Regards,
Dmitry Kresin, ARDAS group - Web site development, Drupal services, Software development, IT outsourcing.

Dev version

colan - August 28, 2007 - 21:06

It appears as though CCK stuff for audio.module is only available with the dev version.

In any event, I'm really happy using Media Field with Mediafield Display to play the files.

 
 

Drupal is a registered trademark of Dries Buytaert.