View Full Version : Category Display Question
pallage
11-29-2006, 09:31 PM
Hello,
I was wondering if there is a way to show the full category path within the suggest a link page.
Meaning, instead of having the end category displayed : "You are going to suggest your link to the following category: ROOT"
Is there a way to do this: "You are going to suggest your link to the following category: ROOT >> Category >> Subcategory
Sort of like a breadcrumb but for the suggest a link section.
Dave Baker
11-29-2006, 09:52 PM
Hello pallage,
***Open templates/yourTemplate/suggest-link.tpl and find code***
{$lang.suggest_link_top1}<br />
<a href="{if $config.mod_rewrite}{$category.path}/{else}index.php?category={$category.id}{/if}"><strong>{$category.title}</strong></a><br />
***Replace with the following***
{$lang.suggest_link_top1}<br />
<a href="{if $config.mod_rewrite}{$category.path}/{else}index.php?category={$category.id}{/if}"><strong>ROOT/{$category.path}</strong></a><br />
***Save file***
pallage
11-29-2006, 09:59 PM
Thank you very much for the help. It worked.
I do have a question though, is there a way to have the path listed as they appear on the directory? For example instead of this :
category/subcategory
Is there a way to do this:
Category/Subcategory
Thanks again.
Dave Baker
11-29-2006, 10:36 PM
It is possible to replace a code of correction with the following:
{$lang.suggest_link_top1}<br />
<a href="{if $config.mod_rewrite}{$category.path}/{else}index.php?category={$category.id}{/if}"><strong style="text-transform: uppercase;">ROOT/{$category.path}</strong></a><br />
But it defines only capital letters
Variant when each word in a text starts with a capital letter is not possible, because in this line we have not blanks.
This variant will not work. Just ex:
{$lang.suggest_link_top1}<br />
<a href="{if $config.mod_rewrite}{$category.path}/{else}index.php?category={$category.id}{/if}"><strong style="text-transform: capitalize;">ROOT/{$category.path}</strong></a><br />
pallage
11-29-2006, 10:54 PM
Again thank you for the help. It worked.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.