Magento如何从静态块/页面按ID链接到类别 [英] Magento How to link to category by id from static block/page

查看:86
本文介绍了Magento如何从静态块/页面按ID链接到类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找使用category id从静态块链接到类别的方法.有什么想法吗?

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.

目前,我可以执行类似<a href="{{store url="category-i-want.html"}}">的操作,但这很难做到.

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

推荐答案

使用类别链接窗口小部件内联链接代码:

Use the category link widget inline link code:

{{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如何从静态块/页面按ID链接到类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆