Magento - 将 Wordpress 集成到 Magento 中作为主页

发布于 2024-11-05 01:33:52 字数 421 浏览 0 评论 0原文

我目前有一个 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 技术交流群。

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

发布评论

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

评论(6

尛丟丟 2024-11-12 01:33:52

您可以尝试的一件事是将 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.

2024-11-12 01:33:52

我在以下链接的第 2 部分找到了解决方案:
http://addoa.com/blog/easy-wordpress-and-magento-integration

以下是步骤的快速摘要(有关完整说明,请单击上面的链接):

1) 创建一个简单的 WordPress 主题文件,跳过所有样式、页眉和页脚,仅显示内容。

2) 在 WordPress 中创建一个使用新的基本模板的页面。

3) 在 Magento 中创建一个模板文件,将新创建的 WordPress 页面嵌入到 Magento 页面中。

4) 将基于新模板的块放置在您希望博客内容显示的 Magento CMS 页面上

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):

1) Create a bare-bones WordPress theme file that skips all of the styles, header, and footer and just displays content.

2) Create a page in WordPress that uses your new bare-bones template.

3) Create a template file in Magento to embed your newly created WordPress page into a Magento page.

4) Place the block based on your new template on the Magento CMS page you want the blog content to display on

云淡月浅 2024-11-12 01:33:52

FishPig 扩展现在支持此功能,因此您可以通过以下步骤来实现此功能:

  • 升级到 FishPig 的 WordPress 集成的最新版本
  • 登录到您的 Magento 管理员并转到 WordPress > >设置博客/插件
  • 找到布局选项并将“博客作为 Magento 主页”设置为“是”
  • 保存页面,瞧,您就拥有了:在 2 分钟内使用您的 Magento 主题将 WordPress 作为您的 Magento 主页

The FishPig extension now supports this functionality so you achieve this by following these steps:

  • Upgrade to the latest version of FishPig's WordPress Integration
  • Login to your Magento Admin and go to WordPress > Settings Blog / Plugins
  • Find the Layout option and set 'Blog as Magento Homepage' to Yes
  • Save the page and voila, you have it: WordPress as your Magento homepage using your Magento theme in under 2 minutes
伴梦长久 2024-11-12 01:33:52

您将需要 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.

握住你手 2024-11-12 01:33:52

希望我能理解你的问题!
以下文章可能对您有帮助(它概述了如何使用 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

红焚 2024-11-12 01:33:52

您还可以使用 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

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