Chinaunix首页 | 论坛 | 博客
  • 博客访问: 269108
  • 博文数量: 59
  • 博客积分: 1368
  • 博客等级: 中尉
  • 技术积分: 1071
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-02 06:06
文章分类

全部博文(59)

文章存档

2012年(59)

我的朋友

分类: 系统运维

2012-03-04 02:00:50

1 添加Register链接
Magento前台默认没有Register链接,如果用户需要注册,需要点击Login链接,再点击Create an Account,才能开始注册,不是很方便,如果需要在前台显示Register链接,可以修改/app/design/frontend/default/default/layout/local.xml:
  1. <?xml version="1.0"?>
  2. <layout>
  3.     <customer_logged_out>
  4.         <reference name="top.links">
  5.             <action method="addLink" translate="label title" module="customer"><label>Register</label><url helper="customer/getRegisterUrl"/><title>Register</title><prepare/><urlParams/><position>101</position></action>
  6.         </reference>
  7.     </customer_logged_out>
  8. </layout>
2 添加About Us链接
修改/app/design/frontend/default/default/layout/local.xml:
  1. <?xml version="1.0"?>
  2. <layout>
  3.     <default>
  4.         <reference name="top.links">
  5.             <action method="addLink" translate="label title"><label>About us</label><url>about-us</url><title>About us</title><prepare/><urlParams/><position>200</position></action>
  6.         </reference>
  7.     </default>
  8. </layout>
3 添加Contact Us链接
修改/app/design/frontend/default/default/layout/local.xml:
  1. <?xml version="1.0"?>
  2. <layout>
  3.     <default>
  4.         <reference name="top.links">
  5.             <action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare></action>
  6.         </reference>
  7.     </default>
  8. </layout>




阅读(1554) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~