Jump to content

Accessing category link rewrite


Recommended Posts

I would like to know how can I access the categories' url rewrite in the header.tpl file...

 

e.g. <a href="{$link->getCategoryLink('60', 'cat-link-rewrite')}">

 

But I don't want to manually write "cat-link-rewrite"... is there a way to access it knowing that category id is 60?

Link to comment
Share on other sites

ops.

In tne classes folder, you have the function file Link.php that controll all the links.

 

public function getCategoryLink($id_category, $alias = NULL, $id_lang = NULL)

 

So, you need to put the category ID, the alias (can be category name name) and the id lang (alias and id lang is optional)

 

<a href="{$link->getCategoryLink('60')}">

Link to comment
Share on other sites

×
×
  • Create New...