Message Text |
When searching within a single category, we use something like...
<select class="searchdrops" name="incat" size="1"><option value="">All Services</option>{CATOPTIONS}</select>
I need to be able to display the category name on the the search results page. Using {INCAT} in search.tpl displays the cat id, I need to be able to display the cat name.
Currently I use a toplist to display the name...
<!-- BEGIN TOPLIST 1969 -->
<CONFIG>categories[,]id[,]1[,]ascending[,]id={INCAT}[,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,][,][,]</CONFIG>
{CATNAME}
<!-- END TOPLIST 1969 -->
But this pruduces an error if there is no {INCAT} value.
Can we have a new variable to display the cat name in the search templates when incat searches are done... or can you think of any other solution?
Thanks
|