Embedded Media Field works great with CCK fields. But, it doesn't help with positioning content inside of the body of nodes.
Ideally, we would create a filter that works the same way that the CCK field does, that parses provider links in the body when that input filter is enabled. This would work the same as it does in WordPress.com, and is also "rich text friendly". End users would enter something like [http://youtube.com?watch=345623456] and the input filter would replace that with a player.
This would either be a separate project that depends on emfield (e.g. take over and revamp http://drupal.org/project/embedfilter) or be a contributed module.
Leaving this here as a placeholder for future work. Please let me know if you are interested in this by leaving a followup with your thoughts.
Comments
Comment #1
aaron commentedno reason not to do this. the filter could work through the same parsers and display hooks. we'd have to build our own tables for the data.
as far as where to keep the project, i'm neutral right now, and would like to hear feedback. on the one hand, it might be nice to use embedfilter, giving those folks an upgrade path. otoh, it would also be nice to include that in the emfield package.
in either case, this is definitely a d6 feature, although it could probably be backported to 5. (maybe don't want to do that if we use embedfilter though).
aaron
Comment #2
alex ua commentedI'd like to propose a second way this could work. Instead of just putting the original url of the video within the brackets, I'd also like something like this to allow you to put an nid of an already existing embedded media field enabled node and paste the video. Something like: [emfield:34], which would print whatever emfield data was present.
One question I have for the first method is: would this actually create a node? Could that be made an option?
Comment #3
boris mann commentedIt's a filter, so no, no node creation (too hard!). I could see a more complex workflow that would include a TinyMCE button where you paste in the remote video, it creates the node locally in a designated CCK content type containing the field, and then inserts the short code. This would be similar to img_assist.
I'm probably going to need this for D5. I'm keeping it assigned to me for now. I may try to get a bit more interest and do a bounty, since I don't have a direct customer need ATM.
Comment #4
alex ua commentedThere has been talk in other threads of making emfield non-reliant on CCK, and more of a stand-alone api that uses cck but which makes itself available to other modules to use. I'm pretty sure that something along these lines will have to happen first before this can work, though I could be wrong.
Comment #5
jaydub commentedAfter reading through the recent site overview of the
Socialist Worker
http://www.topnotchthemes.com/blog/080523/socialistworker-a-stellar-drup...
it's possible that the drupal markup engine http://drupal.org/project/dme could be
utilized for adding an emfield inline into a node body as the article and the project
description would seem to indicate that the same could be done for
referencing Imagefield fields on a node inside the node body via the DME
filtering.
just a thought
Comment #6
boris mann commentedI checked out DME. Two thoughts: one, I don't really want to have another dependency. And two, it looks like only full < xhtml > tags are supported, which are a bit too complex for the average user, IMHO.
I'll check out the DME codebase and see if there's something I can be inspired by.
Comment #7
mpaler commentedI'd like to bump this thread because I have a serious interest in achieving this functionality. I think the work flow suggested in #3 is the most logical. Has anyone made any progress on this problem?
Comment #8
OnkelTem commentedIs this really hard to do? Why there is no such functionality yet?
Currently I'm using a simple template for auto inserting first video after a first paragraph and the rest after content. Not a dream. Vote for filter and subscribing.
Comment #9
aaron commentedThis already works with 5.x (new eminline module: thanks grndlvl!). It works with straight links, no markup needed. Needs to be ported to 6.
Comment #10
OnkelTem commentedaaron, sorry, how to get this module? :-/
Can't find it in CVS contrib or using d.o site search
Comment #11
abaddon commentedditto, cant find it either in any of the releases or csv web interface, any hint as to where this module is?
Comment #12
ao2 commentedHi,
I couldn't find this eminline module anywhere.
However, I added this fucntionality to the experimental inline_field module, see #394682: CCK fields (filefield,imagefield,emfield) and fieldgroups for Inline API, using the Inline API is the way to go IMHO, but the inline_fields module still needs some discussion. Can you give it a look?
Thanks,
Antonio
Comment #13
celadon commentedI would like to see this as well. I would be quite happy with the simplest form (#2 above) which just uses the nid of an existing emfield node. Having an "embed assist" like #3 would be great, but I don't mind loading the node first. I'd be looking for 6.x... Any progress?
Comment #14
robloachEminline is already part of the Embedded Media Field family. If you have any problems with it, then please open up a new issue.