I would like to add a few category links with names manually in my multi-line. I tried this (example ID20 category example)
<?php $category = Mage::getModel('catalog/category')->load(20); ?> <a href="<?php echo $category->getUrl(); ?>"><?php echo $category->getName();?></a>
This works, but I'm not sure if this is a good idea, there are many downloads to get the URL.
I also tried using translation:
<a href="<?php echo $this->__('URL-Language1') ?>"><?php echo $this->__('CatName-Language1') ?></a>
Translated to Locale csv.
It also works, but what is the βright wayβ to achieve this? This seems like a workaround.
source share