问题标签 [joomla-module]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
177 浏览

joomla - Joomla 扩展开发:从数据库中检索文章时如何获取全局参数?

在我的扩展中,我从content表中检索到如下文章:

在这里,我可以检索attribs正在检索的每篇文章的数据。

有没有一种简单的方法可以从全局设置中检索文章参数(Joomla 中是否有某种静态函数?)还是我需要paramsextensions表中手动检索?

0 投票
1 回答
5560 浏览

php - 从旁边显示的模块访问 Joomla 3.2 文章标题

我正在写一个 Joomla!我需要在其中显示当前文章标题的模块。

我在stackoverflow的某个地方找到了这段代码:

虽然它有效,但它使用了已弃用的 JRequest 类,因为它来自 Joomla 1.7 而我使用的是 3.2.2。有人可以告诉我如何重写它以使 Joomla 3.2 有效吗?

0 投票
2 回答
262 浏览

joomla - Joomla 模块开发:如何使用模板和替代布局?

在我的自定义模块中,我的主题结构如下:

我可以让用户从管理部分中选择一个主题,如下所示:

我还有一个替代布局选项,如下所示,但这在下拉列表中没有显示任何内容。我认为这应该显示Default在下拉列表中。是不是因为目录里面的主题子目录tmpl?替代布局是否仅适用于单个主题?

0 投票
4 回答
8367 浏览

joomla - 从 URL 错误安装 Joomla 扩展:存档不存在

我正在尝试将一个包从 URL 安装到我的本地服务器中,但我收到了这个错误:

tmp 路径正确,远程文件 URL 链接也正确。我也尝试过清除 tmp 文件夹,但仍然没有帮助。上传包文件时,包会正确安装。

有谁知道发生了什么?

0 投票
1 回答
1095 浏览

php - Joomla 从表单字段中获取输入

我的 joomla 模块有问题我想访问该字段的值:

从我的 php 文件。我只在互联网上看到过大功能,但它变得更简单了吗?

0 投票
1 回答
753 浏览

joomla - Joomla:ZOOfilter 模块布局为空?

我正在使用 Joomla 3.2.3 并且出于商业目的,我已经安装了 ZOO 包及其所有应用程序。

现在,我有一个显示类别项目的页面。我需要这个页面中的过滤器,因此为它安装了 ZOOfilter 模块。

我已经填写了该模块的所有相关字段,但我在类别页面上收到了这条消息:

ZOOfilter 模块布局为空。检查文档,您可能错过了“选择过滤器”步骤。

0 投票
0 回答
216 浏览

joomla - 在 joomla 3 的媒体管理器中上传时如何优化图像?

当我将 4MB 图像上传到媒体管理器时,它会在没有优化的情况下获取完整大小的图像,这使我的网站加载时间很长,如何在上传文件图像时自动减小图像大小,例如在 wordpress 中自动优化。

0 投票
1 回答
989 浏览

joomla - Cannot set selected elements for the list module on Joomla Fabrik extension

I am using free version of Fabrik extension on Joomla. Both my Joomla and Fabrik are the latest version

I have already done with the Fabrik structure part such as create the form, elements, group, list, and set the form order, validations, appearance, and make them all works. Any registered user can submit the data using the form and it'll be stored into a table on the database

On the front-end, the idea is the user can view two different list view modules through his/her profile, a private list and a public list

  • Module A lists only entries submitted by the user. The list show the whole entry's data
  • Module B lists all of the entries submitted by everyone. The list show only selected data from selected field from each entry

This where the problem came from. When I gonna create a module for the list view (Fabrik List Module)

Module Manager > New > Fabrik List Module > Advanced

After I set the title and the list, when I clicked on the 'Select' button for attribute 'Elements', it just response me like I just clicked on 'Cancel', and redirect me to the modules list table instead. If it is just an unfixed bug, I can do nothing about it, but I guess it'll be a lot easier if I can just set something directly using database admin

0 投票
1 回答
490 浏览

php - 将 php 脚本转换为 Joomla 模块 3.2.3

我用一个 html 表单编写了这个 php 脚本,该表单发送通过电子邮件输入的所有数据。如何将其转换为 joomla 3.2.3 的模块?我四处寻找,但不幸的是我没有找到任何东西。

我希望你能帮助我。

0 投票
0 回答
66 浏览

joomla - 关键字敏感的 Joomla 横幅

我正在尝试在 Joomla 3.2 横幅中启用关键字敏感。我在横幅模块中打开了按标签搜索。我还在横幅和文章中添加了相同的标签,但它似乎不起作用。我阅读了很多教程(http://community.joomla.org/blogs/community/652-putting-those-pesky-banners-in-their-place.html),但它们似乎与以前的 Joomla 版本有关。最终横幅不显示。我应该打开任何特殊选项以使其工作吗?