Magento - 将 Wordpress 集成到 Magento 中作为主页
我目前有一个 Magento 商店,我使用 CMS 页面作为主页。我想将我的 WordPress 博客(托管在同一服务器上)集成到此 CMS 页面中。它将显示最新的博客文章,并且最好在首页上提供评论功能。我首先考虑的是在 Magento CMS 页面上使用 Wordpress Loop,但它似乎不允许 PHP。
我的另一个想法是使用模块或块创建主页。老实说,我从未创建过模块或块,所以我不太熟悉其中涉及的内容。我创建的 CMS 页面只是一个图像滑块/轮播 (nivo-slider) 和一些带有链接的照片。实际上,所有内容都不需要使用 CMS 来完成,它只需要在我的 Magento 主题/框架中呈现即可。所有主页更新都将由我自己处理,因此如果模块解决方案允许我在同一页面上同时拥有 Wordpress 博客和 nivo-slider,我可以完全绕过 CMS 系统,只更新模块。
有什么想法吗?
I currently have a Magento store where I'm using a CMS page as the homepage. I want to integrate my wordpress blog (hosted on the same server) into this CMS page. It would show the latest blog post and preferably have the comment function available on the front page. The first thing I considered was using the Wordpress Loop on the Magento CMS page, but it doesn't seem like it allows PHP.
One other thought I had was to create the homepage using modules or blocks. To be honest, I've never created a module or block so I'm not all that familiar with what is involved. The CMS page that I had created is simply an image slider/carousel (nivo-slider) and some photos with links. None of the content actually needs to be done with CMS, it just needs to be presented within my Magento theme/framework. All homepage updates will be handled by myself, so I can bypass the CMS system all together and just update modules if it turns out that the modules solution will allow me to have both the Wordpress blog and nivo-slider on the same page.
Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您可以尝试的一件事是将 wordpress 设置为主站点,并对其进行样式设置以匹配您的 magento 样式。然后,从 UI 的角度来看,访问者将获得简化的体验。一个问题是,如果您想在 WordPress 上打开评论,那么您将有 2 个帐户,您必须为 WordPress 和 Magento 进行协调。
One thing you can try is setting wordpress as the main site and style it to match your magento styling. Then the visitor will have a streamlined experience from a UI standpoint. One gotcha would be if you want comments open on Wordpress then you'd have 2 accounts you'd have to reconcile for wordpress and magento.
我在以下链接的第 2 部分找到了解决方案:
http://addoa.com/blog/easy-wordpress-and-magento-integration
以下是步骤的快速摘要(有关完整说明,请单击上面的链接):
I found the solution at Part 2 of the following link:
http://addoa.com/blog/easy-wordpress-and-magento-integration
Here's a quick summary of the steps (for a full explanation, click the link above):
FishPig 扩展现在支持此功能,因此您可以通过以下步骤来实现此功能:
The FishPig extension now supports this functionality so you achieve this by following these steps:
您将需要 Fishpig 集成:
http://www.magentocommerce.com /magento-connect/fishpig/extension/3958/fishpig_wordpress_integration
它不仅免费,而且还得到积极维护。
您还可以将根/主页的 Apache 重定向到您选择的 WordPress 页面。这样,您就不必遇到向 Magento 主页添加某些内容的问题,并且可能在 Wordpress 中拥有一些奇特的东西。
You will be wanting the Fishpig integration:
http://www.magentocommerce.com/magento-connect/fishpig/extension/3958/fishpig_wordpress_integration
Not only is it free, it is also actively maintained.
You can also do an Apache redirect for the root/home page to a wordpress page of your choosing. In that way you don't have to have the problem of adding something to the Magento homepage and maybe have something fancy in Wordpress.
希望我能理解你的问题!
以下文章可能对您有帮助(它概述了如何使用 Fishpig 扩展以及如何将最新帖子作为主页上的 magento 块的一部分):
将最近的帖子添加到 magento 主页
hopefully i've understood your question!
the following article may be of help to you (it outlines how to use the fishpig extension and to pull out the latest posts as part of a magento block on your homepage):
adding recent posts to magento homepage
您还可以使用 magento 的博客扩展。
您可以免费从 magento 网站 http:// /www.magentocommerce.com/magento-connect/aheadWorks/extension/1516/blog-extension-by-aheadworks
谢谢
You can also use blog extension of magento.
You can get it free form magento site http://www.magentocommerce.com/magento-connect/aheadWorks/extension/1516/blog-extension-by-aheadworks
Thanks