Can you pls share your lightweight solution to getting media into your nodes.

I will want to upload flash screencasts & movies, audio/podcasts and images. If it makes any difference, the majority of the time it will be me, (I am the sites' developer and content provider).

Your advice please..... Thanks.

Comments

davidredshaw’s picture

I would probably use plain text fields in CCK (different type for each type of media) and just put the file paths in the fields. If you are going to standardise on file formats and sizes you can do this and still control the display adequately in theme files.

-Anti-’s picture

> I would probably use plain text fields in CCK (different type for each type of media)
> and just put the file paths in the fields

May I ask what would that do exactly?
I imagine you'd have a hyperlink to the file, but what would happen when clicked?
Wouldn't it just download the file (depending on the browser mime-type settings)?

To the OP, I don't know what you mean by lightweight, but the 'jquery media' module looks excellent. I haven't tried it yet, but intend to soon. It appears from the description and screencast to parse specified hyperlinks in content (like the ones dredshaw suggested), and if it recognises the file-type, it will load an appropriate player to stream the media.

davidredshaw’s picture

You would have to create the embed tags within your theme (which jQuery Media could do). CCK text fields are easier to import in bulk if that's a requirement - in this case since it was a small personal site I figured this might be an easier solution than uploading files manually.

Having looked at JQM now I'll probably continue using plain text fields but use JQM for embedding.

David

Brian Tastic’s picture

I don't have really any experience with CCK, I've only recently loaded the module along with views.

I tried the JQuery media module, but it shows image file names and movie icons, and I can't find options to turn them off, all I want to do is EMBED the flash movie or whatever.

I just want (as any developer would) to control it's placement of the page using DIVs.

I'm surprised, Drupal has been out for donks, and there doesn't seem to be a straight forward way to do something, that is straight forward in plain HTML.

To the OP, I don't know what you mean by lightweight

By lightweight I mean comparing one line in HTML using IMG for eg against having to install 2 or 3 plus modules.

Can anyone point me to a 'straight forward' method to include images/flash/sound objects in my page nodes?

-----------------------------------------------------------------------------------------------------------------------------------------
Give instruction to a wise man, and he will be still wiser; Teach a just man, and he will increase in learning.

-Anti-’s picture

> method to include images/flash/sound objects

Images are not embedded or streamed - you need to think about those separately.

> it shows image file names and movie icons

Did you watch the screencast? It does embed them, using whichever player you set-up to play the file-types; I've not tried it yet, but the screencast clearly shows this happening. I also asked in the project page whether a normal hyperlink to a media file can be automatically turned into embedded streamed media, and the answer was yes, as long as the hyperlink is 'tagged' with a specific css class.

I use FCKeditor and IMCE to add images (and hyperlinks to files) within content. With a bit of tinkering in FCK it is possible to make these images work with lightbox too.

FCK also has a flash button for uploaded swf files, which and can also play youtube links if they're in the format www.youtube.com/v/M7YLF3rK Although, with the jquery media module, I'm hoping that I won't need the FCK flash button any more; I'm hoping that just simply creating a hyperlink to a media file will be enough for it to be embedded and played. I'll probably need a separate, dedicated youtube button though - I don't think jquery media will play files hosted on other sites.

Other than that, yes you're right. Making media easy for users to add is shockingly bad in Drupal. You're expected to use cck fields and then edit your theme to place them in fixed positions in the template. It's a horrendous method.

Brian Tastic’s picture

Thank you for your substantive reply..

I followed Sean Effel's' excellent screencast, in which he used CCK filefield and JQuery media modules, to 'sniff out' the media file & path in the CCK field, the JQuery media module then loads a media viewer in the page.

I followed and tried this and all works, though, as stated in my previous post, I couldn't get any of the options to turn of the filename and icons. I might give it another go but I'll see if there are any other options that are workable out there.

-----------------------------------------------------------------------------------------------------------------------------------------
Give instruction to a wise man, and he will be still wiser; Teach a just man, and he will increase in learning.

-Anti-’s picture

> I couldn't get any of the options to turn of the filename and icons

But isn't the cck filefield which is inserting those, rather than the jquery media module? If you set-up the JQM to 'sniff' ordinary hyperlinks to files, surely there should be no filenames or icons visible?

You're making me nervous! From the response I got on the project page, it sounded like JQM would 'sniff' the hyperlinks to media files and embed the files in a player without displaying the original hyperlink.

I wish I could check this all out for you, but I've got too many other problems to cope with at the moment. I won't be able to install JQM for at least another week or so.

BTW, during July I spent two solid weeks researching embedded media in Drupal, and beyond the options we've discussed here, there really isn't much else out there at the moment for D6 - especially if you want your users to be able to do it without encountering any html. If you find a solution, please post back!

Cheers.

Brian Tastic’s picture

I will be pleased to post back any solution I find, that works and fits my criteria.

The screencast by Sean is here: http://drupaltherapy.com/node/50. I checked it again and in his screent cast you can see the icon and filefield name.

You mentioned about CCK as the possible 'culprit'. I didn't think of checking the filefield module, being new to CCK. I'll check it out. Cheers.

-----------------------------------------------------------------------------------------------------------------------------------------
Give instruction to a wise man, and he will be still wiser; Teach a just man, and he will increase in learning.

marc delay’s picture

If you go to /admin/content/types/**your content type that has media attached**/display you will see the option to turn the label field on/off. Just set the label to "hidden" and those annoying labels will disappear.
There is also a icon added by filefield. You can remove this with css by adding "display:none;" to .filefield-icon {} near line 5 in filefield.css.
The name of the video/audio clip would have to be removed in the node template. Not sure the details here as this might take a little more then the 4 minutes I have devoted to this thread so far. But hey, 2 out of 3 ain't bad.

Brian Tastic’s picture

Thanks bud, some useful info there, some of which I stumbled across myself.

-----------------------------------------------------------------------------------------------------------------------------------------
Give instruction to a wise man, and he will be still wiser; Teach a just man, and he will increase in learning.