Magento的如何通过从ID静态块/友情链接的类别(Magento How to link to

2019-07-29 03:44发布

I'm looking to link to a category from a static block using the category id. Any thoughts?

I've done the usual searches, but to no avail.

At the moment I can do something like <a href="{{store url="category-i-want.html"}}">, but this is hardly robust.

Answer 1:

使用类别链接插件内嵌的链接代码:

{{widget type="catalog/category_widget_link" anchor_text="Displayed Text" title="Title attribute text" template="catalog/category/widget/link/link_block.phtml" id_path="category/22"}}


文章来源: Magento How to link to category by id from static block/page