View Single Post
  #42  
Old 07-16-2007, 11:11 AM
 
MrHeeltoe MrHeeltoe is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 206
 

Default Re: Smart Search from alteredCart :: Spell Checking, Did You Mean? and More.

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?
Reply With Quote