本文介绍了Magento:/catalog网址路径中的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cms页面和按钮目录"进行导航.这一个链接到 www.website.nl/catalog

I hav a navigation with cms pages and a button 'catalog'. This one links to www.website.nl/catalog

我想在此URL下显示类别.我试图将根类别重命名为目录",并在导航中显示根类别,但这是不可能的( http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/catalog/creating_and_assigning_root_categories )

I want to display the catagories under this url.I tried to rename the root categorie to 'catalog' and show the root category in the navigation, but that isn't possible ( http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/catalog/creating_and_assigning_root_categories )

现在,我在cms页上有一个目录",其中有一个静态块,其中显示了类别.它有效,但是当访客单击类别时,面包屑不再显示目录".只是:首页->类别名称".

Now I have 'catalog' as a cms-page with a static block wich shows the categories. It works, but when the visitor clicks a categorie, the breadcrumbs don't show 'catalog' anymore. Just: 'Home -> Category name'.

URL是 www.website.nl/categorypath ,而不是 www.website.nl/catalog/categorypath .

是否可以这样设置商店?

Is it possible to setup the store like this?

我希望我清楚地解释了我的问题.

I hope I explained my problem clearly enough.

Greets Niek

Greets Niek

推荐答案

将类别移动到名为目录"的根子类别,然后重新索引.

Move your categories to a subcategory of root called "Catalog", then reindex.

您可以使用cms编辑器内容区域中的以下短代码在首页上的网格中显示产品(或布局更新,语法稍有不同,如果您不熟悉布局更新,应该知道这些语法):

You can display products in a grid on your homepage with the following shortcode in the content area of the cms editor (or layout updates with slightly different syntax which you should know if you are messing with layout updates):

{{block type="catalog/product_list" category_id="4" template="catalog/product/list.phtml"}}

category_id ="4"中的4会替换为您的目录"子类别的ID

Where 4 in category_id="4" would be replaced with your "Catalog" subcategory's ID

这篇关于Magento:/catalog网址路径中的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 07:19