6

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.

Alex Hadley
  • 2,125
  • 2
  • 28
  • 50

1 Answers1

7

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"}}
benmarks
  • 23,384
  • 1
  • 62
  • 84