【发布时间】:2014-02-10 05:51:41
【问题描述】:
我正在努力让 qTranslate 正常工作(特别是 mqTranslate 插件)。当使用 Magento 主题显示博客时,我注意到 wordpress 主题中的 functions.php 似乎被绕过了。
如何在 Fishpig 中使用钩子和过滤器来获取 qTranslate 插件功能来过滤帖子标题和内容?逐个覆盖fishpig base/default/template文件似乎适得其反。
非常感谢任何帮助。
【问题讨论】:
-
因为 Wordpress 不使用 Magento 框架,我的假设是为翻译 Magento 块而构建的 qTranslate 扩展无法与集成的 Wordpress 功能一起使用。
-
这是 Wordpress 的 qTranslate
-
哦,我明白了。我相信 Fishpig 插件直接查询 Wordpress 数据库并将数据注入到 Magento 块中,因此在 Magento 端使用时,将绕过对 Wordpress 端数据的任何第 3 方修改。
-
有道理,使用我想的模型。我主要是想看看是否有一个共同的地方可以编写自定义,而不必重写或扩展,因为这在更新扩展时也会适得其反。
标签: php wordpress magento locale fishpig