作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在构建 Joomla 网站,媒体管理器遇到一些问题。我无法在媒体管理器中创建子文件夹或将图像上传到子文件夹中。我可以导航到子文件夹并查看它们的文件,但如果我创建一个新文件夹或上传一个新文件,它最终会出现在/images 目录中。
我注意到链接中的 url 查询包含 &folder= ,但没有任何值。查看 php 文件,发现 $this->state->folder 即使在子文件夹中也会返回空字符串。
还有其他人遇到这个问题并知道解决方案吗?
编辑:最新版本的 Joomla (3.3)。还应该提到这个问题只发生在默认媒体管理器中。如果我使用编辑器内置的 JCK 管理器,就没有问题。
最佳答案
他们解决了问题:https://github.com/joomla/joomla-cms/pull/3575/files
您需要做的就是转到:administrator/components/com_media/views/media/tmpl/default.php 第 72 行,然后更改
72: <input type="text" id="folderpath" readonly="readonly" />
到
72: <input type="text" id="folderpath" readonly="readonly" class="update-folder" />
转到:media/media/js/mediamanager.js 第 45 行并更改
45: this.updatepaths.each(function(path){ path.value =folder; });
...
48: this.updatepaths.each(function(path){ path.value = ''; });
到
45: this.updatepaths.each(function(path, el){ el.value =folder; });
...
48: this.updatepaths.each(function(path, el){ el.value = ''; });
GL
关于php - Joomla 3 媒体管理器创建所有新子文件夹并将文件上传到顶级图像目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23412919/
我是一名优秀的程序员,十分优秀!