Magento“杂项脚本”

发布于 2024-10-08 02:16:05 字数 266 浏览 0 评论 0原文

@ /index.php/admin/system_config/edit/section/design/

添加到 Magento 的“杂项脚本”字段是否会影响站点前端的每个页面?

例如,如果我想要灯箱,我可以在此处添加脚本,然后在我配置的任何地方(例如小部件或静态块)调用它吗?

出现这个问题是因为 JW Player 告诉我他们没有制作 Magento 插件的具体计划(就像他们为 wordpress 所做的那样),但他们说如果脚本位于标题中,则播放器“应该运行”。

@ /index.php/admin/system_config/edit/section/design/

Does adding to Magento's "Miscellaneous scripts" field affect every page in the site frontend?

For instance, if I want lightbox, can I add the script here and then call it anywhere i configure say a Widget or Static Block?

This question came up because JW Player told me they have no specific plans to make a Magento plug-in (like they have for wordpress) but they said that the player "should run" if the script is in the header.

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

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

发布评论

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

评论(2

愿得七秒忆 2024-10-15 02:16:05

是的,“杂项脚本”同样影响所有页面。每个商店和商店视图的设置可能不同,但仍会影响这些商店的所有页面。

为了更具选择性,您必须为其制作扩展。您可以尝试在功能请求中寻求志愿者。

Yes "Miscellaneous Scripts" affects all pages equally. The setting can be different for each store and store view, but will still affect all pages for those stores.

To be more selective you would have to have an extension made for it. You can try asking for volunteers in Feature Requests.

剑心龙吟 2024-10-15 02:16:05

只需创建您的扩展并将 JavaScript 引用添加到布局中的标题,然后在模板中调用播放器即可。

Just make your extension and add JavaScript references to the header in the layout and call the player in your templates.

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