Work with emfield links to create an emfield filter

Boris Mann - May 14, 2008 - 16:56
Project:Embedded Media Field
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Boris Mann
Status:closed
Description

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.

#1

aaron - May 14, 2008 - 17:52

no 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

#2

Alex UA - May 15, 2008 - 00:49

I'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?

#3

Boris Mann - May 15, 2008 - 07:42

It'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.

#4

Alex UA - May 16, 2008 - 17:23

There 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.

#5

jaydub - May 26, 2008 - 11:07

After 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

#6

Boris Mann - May 26, 2008 - 20:18

I 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.

#7

mpaler - February 16, 2009 - 20:43

I'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?

#8

OnkelTem - March 21, 2009 - 01:29

Is 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.

#9

aaron - March 21, 2009 - 02:59
Version:5.x-1.x-dev» 6.x-1.x-dev

This already works with 5.x (new eminline module: thanks grndlvl!). It works with straight links, no markup needed. Needs to be ported to 6.

#10

OnkelTem - March 21, 2009 - 03:34

aaron, sorry, how to get this module? :-/
Can't find it in CVS contrib or using d.o site search

#11

abaddon - June 3, 2009 - 10:49

ditto, cant find it either in any of the releases or csv web interface, any hint as to where this module is?

#12

ao2 - July 4, 2009 - 10:47

Hi,

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

#13

celadon - August 10, 2009 - 05:46

I 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?

#14

Rob Loach - August 10, 2009 - 07:27
Status:active» fixed

Eminline is already part of the Embedded Media Field family. If you have any problems with it, then please open up a new issue.

#15

System Message - August 24, 2009 - 07:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.