English 中文(简体)
Joomla Media 管理器无法打开视频文件
原标题:Joomla Media manager cannot open video files

在模块 s 配置文件中, 我将参数设置为

                <field
                name="file"
                type="media"
                default="video.mp4"
                directory="videos"
                label="MOD_PLAYER_FIELD_FILE_LABEL"
                description="MOD_PLAYER_FIELD_FILE_DESC"/>

然后我作为管理员登录, 打开模块管理器和模块。 当我单击文件字段旁边的选定按钮时, 媒体管理器会装入窗口, 但只能显示/ 选择图像文件 。 如何让它能够选择视频文件?

谢谢!

问题回答

默认情况下,这一可悲的操作不起作用( 至少在Joomla 2.5. * 中)。 在旧的工程中,我们不得不黑入 < code> com_ media 组件, 才能工作。 您需要应用以下更改

diff --git a/administrator/components/com_media/models/list.php b/administrator/components/com_media/models/list.php
index b97a930..ebee3f4 100644
--- a/administrator/components/com_media/models/list.php
+++ b/administrator/components/com_media/models/list.php
@@ -156,7 +156,7 @@ class MediaModelList extends JModel
                        default:
                            $tmp->icon_32 = "media/mime-icon-32/".$ext.".png";
                            $tmp->icon_16 = "media/mime-icon-16/".$ext.".png";
-                           $docs[] = $tmp;
+                           $images[] = $tmp;
                            break;
                    }
                }

视频和音频文件现在将使用“ 介质” 类型显示, 尽管图像图标已经损坏( 因为它们没有) 。 显然, 手工添加必要的图像信息可以进一步改进这个补丁 。





相关问题
cross platform issues in webpages

I am developing some basic html pages, i am setting colors of text usimg color code #e7eddf it seems fine in windows but seems different in mac. Can you explain me why its happening and also ...

How to create breadcumb for custom component in Joomla?

I have a custom component in which I want to have a breadcumb to help the user navigate the previous page visits. The basic feature in my component is to show our product releases. The workflow is: ...

Preloading images

i ve a navigation bar like the one below..for each it changes the background color on mouseover and mouseout and there is a lag to load those images which looks awful :( i wanna know how to preload ...

Joomla conditional menu item

I d like to create a menu item in Joomla that points to one article when the user is logged out, and a different article when the user is logged in. I tried creating two menu items, and make them ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

How can you test if you re on the homepage in Joomla?

I m working on a Joomla site, and I need the front page to look slightly different from the rest of the pages, but not enough to warrant the use of two themes (it s a pain to have to update two ...

How to get the current Joomla username?

I m trying to get the current Joomla username. I was able to get it by using $user =& JFactory::getUser(); echo $user->username; But now I ve installed Joomla on my local server and it doesn ...

热门标签