Quote:
Originally Posted by nfc5382
Even better!!!! This works great and shows category results that match the search string.
If you have CDSEO, change the following in smart_search.tpl to use cdseo links vs. categoryids:
Code:
{section name=rc loop=$related_categories}
<li>
<a href="home.php?cat={$related_categories[rc].categoryid}">{$related_categories[rc].category}</a>
</li>
{/section}
to
Code:
{section name=rc loop=$related_categories}
<li>
<a href="{$cdseo_cat}/{$related_categories[rc].cdseo_url}/" title="{$related_categories[rc].category|escape:"html"}">{$related_categories[rc].category}</a>
</li>
{/section}
A+, best mod out there!
|
I am having trouble finding this code...Actually, my version is not finding related categories. Can I just plug this code into the tpl file?