Love this feature in WYSIWYG ImageField

It makes more sense, to me, to have this included in FileField Sources. IMCE support is nice, but that module isn't very user friendly.

Comments

philbar’s picture

Perhaps you can add Deciphered as a co-maintainer.

deciphered’s picture

Haha, no thanks, got way too much on my own plate at the moment, but I appreciate the thought :)
Although, if Quicksketch does want this functionality in the module I would think it only fair for me to contribute time to the development of the feature if necessary.

Cheers,
Deciphered.

gordon’s picture

subscribe

gordon’s picture

Assigned: Unassigned » gordon
Status: Active » Needs review
StatusFileSize
new13.04 KB

I have ported the Views Based file browser from WYSIWYG ImageField.

I think that this was in the wrong place for what it is, and is much better suited to being directly in filefield_sources. I do understand why @Deciphered did this and needed this functionality in filefield sources and didn't need WYSIWYG ImageField.

ATM it is a straight port of the version from WYSIWYG ImageField but I want is also needed to is to allow support for other file types, not just images so the image for a normal file will be a default mime type image.

gordon’s picture

Done a little more testing and the ajax is not working for exposed views. I will need to do some more playing.

deciphered’s picture

Let me know how it goes, I will be more than happy to rip it out of WIF if it makes it in to FFS.

redkilian’s picture

subscribe

carn1x’s picture

Component: User interface » General

subscribe

rmontero’s picture

Subscribe

crea’s picture

This doesn't use iframes, right ?
I'm thinking about ModalFrame-based solution

deciphered’s picture

@crea

No, it does not use iFrames.

Wysiwyg ImageField, the module that this code comes from, wraps ImageField, FielField Sources and Insert in a Modal Frame. Though there's no future development on Wysiwyg ImageField as it's being succeeded by Wysiwyg Fields instead. So if you're after an existing Modal Frame based solution, check them out.

crea’s picture

I don't use WYSIWYG so it would be strange for me to install Wysiwyg-related module just to have Views-based file sources browser. I suspect I will have to code this myself :)

scroogie’s picture

StatusFileSize
new76.64 KB

I wrote a Drupal 6 source like this using modalframe API for one of my pages, but it's not generic. It uses the node gallery types, as was probably expected from me. ;)

It's not a finished product, but I don't think it needs too much work. Some polish here and there, perhaps some additional features. I'd be willing to co-maintain if you would as well crea. Drop me a mail if so.

scroogie’s picture

I've uploaded the code to a sandbox so everyone interested can create issues, pull the code, create patches or whatever. I didn't bother making it generic right now, cause I wanted it up quickly. If you work on this, please don't hold your contributions back. I think a lot of people can profit from such a module (even if its small).

http://drupal.org/sandbox/scroogie/1260492

karljohann’s picture

Any progress being made?

quicksketch’s picture

This patch is similar to #1170928: fielefield_source: views as source. Both have patches so I don't want to mark either duplicate. I'm not spending a lot of time on FileField Sources, so more testing/reviewing on these issues would be appreciated.

quicksketch’s picture

Status: Needs review » Closed (duplicate)

I've decided to move forward on this feature, but not in the Drupal 6 version of the module. We'll be branching for 2.x, which will include the new sources for Views-reference (#1170928: fielefield_source: views as source) and Clipboard support (#1768740: New Source: Paste from Clipboard).

Marking this issue duplicate of the other issue for adding Views support, as it's for D7.