Magento. 向导航栏添加页面链接
October 4, 2012
本教程展示了如何添加页面链接到Magento navigation bar.
为了添加页面链接到 navigation 酒吧,你应该执行以下步骤:
步骤1:添加子类别
-
Go to Catalog -> Manage Categories 在您的Magento管理.
-
Select “默认类别” 在左侧,然后单击 ‘Add Subcategory’ button:
-
填写以下字段:
-指定你的链接 Name.
– Set ‘Is Active’ to Yes.
– In the URL Key 字段中键入您的页面链接的名称,用小写字母加上连字符代替空格(f.e.About Us变成了About - Us);
-向下滚动到表单的底部并设置 Include to Navigation Menu to ‘yes’.
– Click ‘Save Category’ button:
步骤2:创建重定向
-
Navigate to Catalog -> URL Rewrite Management.
-
的搜索框中 Request Path 列中,键入 URL key ,单击 Search.
定位到子分类后,单击 ‘Edit’ 打开记录:
注意:您将有每个已安装语言的记录. 您可以打开每一种语言的记录 browser tab.
-
Open the notepad on your PC and save 以下信息 ID path 你的URL重写和 Request path:
-
Now we should 删除URL重写 对于每种语言-单击 Delete 按钮在右上方.
步骤3:添加新的URL重写
-
In Catalog -> URL Rewrite Management click Add URL Rewrite 按钮在右上方.
-
In the Create URL Rewrite field select ‘Custom’.
-
Fill in the URL重写信息表:
– Add the ID path 对于您在步骤2中记录并保存在记事本中的项目.2.
– Add the Request Path 对于您在步骤2中记录并保存在记事本中的项目.2.
– To fill in the Target Path field, open any navigation 菜单,并将其url复制粘贴到该字段中.e: http://yourdomain.com/index.php /联系人/ ( ‘contacts’ og体育的请求路径是什么 navigation page). 将“请求路径”替换为您在步骤2中记录并保存在记事本中的新项“请求路径”.本教程第2部分.
-
Set Redirect to ‘Permanent 301’.
-
Click ‘save’ 右上方按钮:
注意:每种语言都需要这样做.
步骤4:创建页面
-
Go to CMS -> Pages.
-
Click ‘Add New Page’.
-
指定页面标题 URL key 对于页面,选择 All Store Views:
-
Switch to the Content Tab on the left. Put the html 为您的页面内容在这里.
-
Switch to the Design Tab on the left. In the layout 字段选择所需的页面 Layout:
- Click ‘Save Page’.
步骤5:清理Magento缓存
请参考本教程来学习 如何清除缓存在Magento.
本教程到此结束. 您已经学习了如何添加页面链接到Magento navigation bar
请随时查看下面的详细视频教程:
别忘了看看我们的新收藏 高级Magento主题!