![]() |
Search resuts message
When I submit a search, on the search results page it will display:
"5 results found" > I would like to have it display: "BIKES returned 5 results" Can someone help me get the "search term" to display with the results message? |
Re: Search resuts message
Make a backup of any template you edit, I don't garentee that this will work as I have heavily modded my site and early on I didn't comment as heavily as i should have :*)
in your search_result.tpl right after {if $mode eq "search"} Quote:
I'm not sure how much of this code is prexhisting but I'll break it down for you: the 'if mode eq search' is pretty self explanitory as is 'if total items gt 1' part. the language variable may not be in your database to check if it is and/or add if it isn't go into your language section in your admin pannel and search for "results found' in the text class. add 'txt_N_results_found' if you don't see it and in your wording put 'items' where you want the total number of items to appear my wording is thus:"items results found" you could put the 'for' in the txt variable if you want, i just have it hanging out in the template. The '|substitute:"items":$total_items' part of the variable does what you expect, substitues the word 'items' with the variable total_items. I have the html codes for " " around the search variable. |
Re: Search resuts message
It worked; thank you for the help.
|
All times are GMT -8. The time now is 04:33 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.