Fix Media Manager to show all file type

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
amuropao08
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Oct 12, 2009 4:09 am

Fix Media Manager to show all file type

Post by amuropao08 » Thu Jul 05, 2012 3:55 pm

I found that when you select file with select media field type you will not see anything except folders and images file type. Although you can success uploaded another file type (ex. PDF) in Media Manager menu and you can see file in there.

So I have modify some view in com_media(Media Manager) to show another file. And of course you can select file to get path too.

All you have to do is extract folder imagelist from attach file to replace in {Joomla Install Dir}\administrator\components\com_media\views\

Hope you like it :)
You do not have the required permissions to view the files attached to this post.

nickgps
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jul 02, 2012 6:48 am

Re: Fix Media Manager to show all file type

Post by nickgps » Mon Jul 09, 2012 10:43 pm

Thank you! This is exactly what I was looking for to fix a problem I was having!

Have you written any other fixes or plugins for Joomla?

Thanks again,
Nick

enryb
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu May 02, 2013 2:58 pm

Re: Fix Media Manager to show all file type

Post by enryb » Fri May 03, 2013 9:02 am

Hi,
thanks for this useful patch!

I found a problem: if I put a pdf or a flv file in the root directory (/images) i can see it with your patch.
But if I move that file in a subdirectory I can't see it.

Do you know how to fix this problem?

Thanks,
Enryb

markusm
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jul 10, 2013 12:07 am

Re: Fix Media Manager to show all file type

Post by markusm » Wed Jul 10, 2013 12:40 am

Hi,

you have to add the "$documents" to the if-clause in the template. Here is a fixed patch!
You do not have the required permissions to view the files attached to this post.

enryb
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu May 02, 2013 2:58 pm

Re: Fix Media Manager to show all file type

Post by enryb » Wed Jul 10, 2013 9:22 am

Many Thanks! :)

I just find an error in a file name:

default_document.php instead of default_documents.php (i got an error 500, i tried to rename files and now it works well).

Thank you very much!

Bye,
enryb

thedayforlove
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Feb 11, 2014 8:09 am

Re: Fix Media Manager to show all file type

Post by thedayforlove » Tue Feb 11, 2014 8:15 am

Dear amuropao08,
You saved me.
Thank you very much. It is very lucky to see your post here.

swissdoode
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Mar 05, 2014 1:25 pm

Re: Fix Media Manager to show all file type

Post by swissdoode » Fri Jul 04, 2014 8:32 pm

Finally! I was looking for a solution like this for DAYS now!

THANK YOU FOR WRITING THIS PATCH!!!

[Edit]

I had an error 500 when first loading the media manager.
Solution was to rename the file «default_document.php» with «default_documents.php».

Also, the items in the list weren't floating, but I just got a loooong vertical list with all files located at the left side of the manager's view.

Solution: Open «default.php» and change line 13 from

Code: Select all

<div class="manager">
to

Code: Select all

<div class="manager thumbnails">


Locked

Return to “Joomla! 2.5 Coding”