MWD News and Testimonials with Images Extension该插件的安装!

在水水博客里看到这个插件:挺好!安装了一下,正好把公司的article问题解决了!!

插件名称:    MWD News and Testimonials with Images Extension
Extension Key:magento-community/MWD_News_and_Testimonials_with_Images_Extension
网址:    http://www.magentocommerce.com/extension/specs/3708/mwd_news_and_testimonials_with_images_extension

低版本magento不支持,公司那个安装不了

 

安装后进入news页面,点击后不能进入详细信息页面的问题的解决:

 

步骤:

1新建一个page

content加入:{{block type="profile/profile" name="profile" template="profile/news.phtml"}}

2访问该page

3显示出来news列表,但是点击详细信息的时候出现错误

4解决:

 

进入

app/code/core/Mage/Cms/controllers/pageController.php

文件,加入read方法

 public function readAction()
    {

     $this->_forward('read','news','profile');
   }

OK,可以用了

但是进入后发现没有看到详细信息,别急

进入文件

app/design/frontend/default/default/template/profile/readnews.phtml

<p><?php  //echo $profile->getData("content"); ?></p>

将注释去掉就可以了!!

 

 

 

如果是文章的话,则

page->content:

{{block type="profile/profile" name="profile" template="profile/pressarticles.phtml"}}

 

 

 

 

 

app/code/core/Mage/Cms/controllers/pageController.php

 public function readAction()

    {

 

     $this->_forward('read','pressarticles','profile');

   }

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值