Joomla 插件 {calls} - 如何使它们在新闻显示模块中不可见?

发布于 2024-11-10 07:58:13 字数 247 浏览 4 评论 0原文

我正在为 JOomla 使用 sigplus 图片库扩展,有时我需要使用 {gallery /} 语句调用其插件。效果很好,在文章中看不到。但是,当我希望这篇文章在首页上可见并且我为此目的使用 JED 的任何模块(新闻滚动条/滑块)时,该声明是可见的。 查看示例

有没有办法让这个{statement}消失?或者是否有一个滑块模块不显示它?

I am using sigplus image gallery extension for JOomla and sometimes I need to put a call to its plugin by using {gallery /} statement. It works well and it's not visible in the article. But when I want this article to be visible on frontpage and I use any module from JED for that purpose (news scrollers/sliders) the statement is visible.
Look at the example.

Is there a way to make this {statement} disappear? Or is there a slider module which doesn't show it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好多鱼好多余 2024-11-17 07:58:13

您看到对插件的调用的原因是您正在使用的模块不会触发插件代码,因此它永远不会被图库替换。无论您使用什么模块,这都将是一个问题,因为调用 if 是内容的一部分。要么会显示,要么图库会显示,除非您操纵代码来执行其他操作。

您最好的选择是修改您最喜欢的模块。如果您查看 SIG 插件,会发现他们使用正则表达式将插件调用替换为图库代码。复制它并将其放置在您的模块中,但是添加库代码,将调用替换为空,它将不再出现在您的模块中。

The reason you are seeing the call to the plugin is that the modules you are using do not trigger the plugin code so it never gets replaced with a gallery. That's going to be an issue no matter what module you are using because the call if part of the content. Either that will show up or the gallery will unless you manipulate the code to do otherwise.

Your best bet is to modify which ever module you like best. If you look in the SIG plugin there is a regular expression they are using to replace the plugin call with the gallery code. Copy that and place it in your module, but instead up adding in the gallery code, replace the call with nothing and it will no longer appear in your module.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文