PDA

View Full Version : Parent category link


Cris Santos
06-04-2006, 08:17 PM
What am i doing wrong here?
What I want to do is to get a link to "parent category" to show up next to actual cat. But parent cat is not showing up.


<td align="left" valign="top"><strong>{$lang.category}:</strong></td>
<td align="left" valign="top"><img name="" src="" width="10" height="0" alt="" /></td>
<td width="300" align="left" valign="top"><a href="{if $config.mod_rewrite}{$category.path}/{else}index.php?category={$category.id}{/if}" class="cat-url">{$category.title}</a> | <a href="{if $config.mod_rewrite}{$category.path}/{else}index.php?category={$category.parent_id}{/if}" class="cat-url">{$category.parent_title}</a></td>

Nick Collins
06-05-2006, 07:29 AM
Here is a mod to display current and parent category:
http://www.esyndicat.com/forum/about5696.html

Cris Santos
06-05-2006, 04:14 PM
Thanks but i did try that. The problem for with that is that it does not provide links in path, so it wasnt helpful.
I've now gone back to breadcrumb.