Closed (fixed)
Project:
Linkit
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2011 at 16:32 UTC
Updated:
20 Nov 2013 at 15:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bensnyder commentedI think Media integration is essential. +1
Comment #2
bobodrone commentedThis is a quick fix patch to support uploaded files with media module, ie files that are not in the file_usage table.
As is.
/ bobodrone
Comment #3
guedressel commentedPatch from bobodrone works fine for me.
Comment #4
anonThe patch from bobodrone is working, BUT it may has some security issues.
A bigger issue related to this is that we should use the entity API for querys, which will give us more flexibility and reduce crossmodule bugs. (This is a separete issue tho)
Comment #5
anonMarked #1417128: EntityMalformedException as a duplicate.
Comment #6
bensnyder commentedJust checked out
git clone --branch 7.x-2.x-entityapi http://git.drupal.org/project/linkit.gitNice stuff there! Ultimately though we're not going to want to hard link to files, i.e. "/sites/default/files/filename.extension" - right? And will it be compatible with Media 1.x and 2.x? Thoughts?
Thanks..!
Comment #7
anonIn that branch, there is possible to get results on files uploaded by the media module.
Not sure if this is what you asking for, or if you what something like the old IMCE integration Linkis has.
About the hard links, isnt that the only way to link to files? I mean Linkit is not a text filter and I have no intention do make it one as there are other modules doing this.
Comment #8
bensnyder commentedAllow me to explain... Let's consider this with Media 2.x.
Instead of linking statically:
It would be best if Linkit output:
Or directly to the file:
And a text filter like Pathologic would convert that on render to an absolute path. Perhaps:
Maybe Media 2.x should provide the text filter?
Thanks.
Comment #9
anonAh, I see. Yes, this would be a nice feature.
WE just have to come up with an idea of how this should work, I mean if I dont have the media module installed, I will still be able to link to files (directly). And IF I have the media module install, I have the options to link to the file page and directly to the file.
Not sure how to handle this. Any ideas?
Comment #10
anonActually the
file/123paths is from File EntityComment #11
anonI have now merge in the new plugin system to 7.x-2.x dev which also includes the new plugins.
Now you will be albo to search for files, no matter what it was uploaded with.
You need to have File entity installed tho to have the file support.
File entity will create links to /file/[fid] as bensnyder said in 8#.
If there are any new problems, feel free to open this issue or create a new one.
Comment #13
joelcollinsdc commentedSo just confirming, the current linkit->media integration only supports linking to /file/FID paths? There is no option to specify a display mode for the media item? Is that capability available somewhere else that I am overlooking?
Comment #14
georgedamonkey commentedHello,
Is there a way to have a 'Open file browser' button that worked with the Media module? Ideally, I'd like to eliminate IMCE completely, and this would be a great feature of Linkit.
Thank you.
Comment #15
anonDon't kidnap this issue. Its fixed.