Categories

Featured templates

Magento. 向导航栏添加页面链接

Daniel Morales October 4, 2012
Rating: 3.7/5. From 11 votes.
Please wait...

本教程展示了如何添加页面链接到Magento navigation bar.

Magento. 在导航栏中添加页面链接

为了添加页面链接到 navigation 酒吧,你应该执行以下步骤:

步骤1:添加子类别

  1. Go to Catalog -> Manage Categories 在您的Magento管理.

  2. Select “默认类别” 在左侧,然后单击 ‘Add Subcategory’ button:

    Magento.-Adding-page-links-in-the-navigation-bar1

  3. 填写以下字段:

    -指定你的链接 Name.

    – Set ‘Is Active’ to Yes.

    – In the URL Key 字段中键入您的页面链接的名称,用小写字母加上连字符代替空格(f.e.About Us变成了About - Us);

    Magento.-Adding-page-links-in-the-navigation-bar2

    -向下滚动到表单的底部并设置 Include to Navigation Menu to ‘yes’.

    – Click ‘Save Category’ button:

    Magento.-Adding-page-links-in-the-navigation-bar3

步骤2:创建重定向

  1. Navigate to Catalog -> URL Rewrite Management.

  2. 的搜索框中 Request Path 列中,键入 URL key ,单击 Search.

    定位到子分类后,单击 ‘Edit’ 打开记录:

    Magento.-Adding-page-links-in-the-navigation-bar4

    注意:您将有每个已安装语言的记录. 您可以打开每一种语言的记录 browser tab.

  3. Open the notepad on your PC and save 以下信息 ID path 你的URL重写和 Request path:

    Magento.-Adding-page-links-in-the-navigation-bar5

  4. Now we should 删除URL重写 对于每种语言-单击 Delete 按钮在右上方.

步骤3:添加新的URL重写

  1. In Catalog -> URL Rewrite Management click Add URL Rewrite 按钮在右上方.

  2. In the Create URL Rewrite field select ‘Custom’.

  3. 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部分.

  4. Set Redirect to ‘Permanent 301’.

  5. Click ‘save’ 右上方按钮:

    Magento.-Adding-page-links-in-the-navigation-bar6

    注意:每种语言都需要这样做.

步骤4:创建页面

  1. Go to CMS -> Pages.

  2. Click ‘Add New Page’.

  3. 指定页面标题 URL key 对于页面,选择 All Store Views:

    Magento.-Adding-page-links-in-the-navigation-bar7

  4. Switch to the Content Tab on the left. Put the html 为您的页面内容在这里.

  5. Switch to the Design Tab on the left. In the layout 字段选择所需的页面 Layout:

    Magento.-Adding-page-links-in-the-navigation-bar8

  6. Click ‘Save Page’.

步骤5:清理Magento缓存

请参考本教程来学习 如何清除缓存在Magento.

本教程到此结束. 您已经学习了如何添加页面链接到Magento navigation bar

请随时查看下面的详细视频教程:

Magento. 在导航栏中添加页面链接

别忘了看看我们的新收藏 高级Magento主题!

高级Magento主题
这个条目被张贴了出来 Magento Tutorials and tagged add, link, Magento, menu, navigation. Bookmark the permalink.

Submit a ticket

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: Submit a ticket