federico8 Posted June 7, 2012 Share Posted June 7, 2012 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 More sharing options...
federico8 Posted June 13, 2012 Author Share Posted June 13, 2012 Hi... any suggestion would be seriously appreciated... I still cant' figure it out... Link to comment Share on other sites More sharing options...
shacker Posted June 13, 2012 Share Posted June 13, 2012 tha category rewrite are called from the the category url rewrite. When you create a category, you can fill the category url rewrite Link to comment Share on other sites More sharing options...
federico8 Posted June 13, 2012 Author Share Posted June 13, 2012 Thanks shacker but I don't want to create a category. I'm putting these links in the header.tpl file and I am writing them manually... Link to comment Share on other sites More sharing options...
shacker Posted June 13, 2012 Share Posted June 13, 2012 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 More sharing options...
federico8 Posted June 20, 2012 Author Share Posted June 20, 2012 Hi thanks for your answer but it doesn't affect what I want to do... I think I'm gonna write an apposite function Link to comment Share on other sites More sharing options...
Recommended Posts