Displaying message when no search results found

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
laurence_hsia
Jr. Propeller Head
Posts: 5
Joined: Sun Nov 05, 2017 7:29 pm

Displaying message when no search results found

Post by laurence_hsia »

Hi, I am using Tri-pane navigation (Flare2017) and wondering how to display a message like "Sorry, no results found" when actually no searching results are found, or display a message like " x results are found" when there are x results are found.

Thanks,

Wei
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Displaying message when no search results found

Post by NorthEast »

By default, the search will display a message like this:
Your search for "something" returned 0 result(s).
If you want to change this text, you can do that in the skin; UI Text > Search heading
laurence_hsia
Jr. Propeller Head
Posts: 5
Joined: Sun Nov 05, 2017 7:29 pm

Re: Displaying message when no search results found

Post by laurence_hsia »

Dave Lee wrote:By default, the search will display a message like this:
Your search for "something" returned 0 result(s).
If you want to change this text, you can do that in the skin; UI Text > Search heading

Thanks Dave, but i didnt see the return like "Your search for .. returned x result(s)" when the output is HTML5-tripane. If no results are found, by default it shows a blank page. It seems only works for top-navigation. Can tripane do the same thing?
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Displaying message when no search results found

Post by NorthEast »

laurence_hsia wrote:
Dave Lee wrote:By default, the search will display a message like this:
Your search for "something" returned 0 result(s).
If you want to change this text, you can do that in the skin; UI Text > Search heading

Thanks Dave, but i didnt see the return like "Your search for .. returned x result(s)" when the output is HTML5-tripane. If no results are found, by default it shows a blank page. It seems only works for top-navigation. Can tripane do the same thing?
Then I'm guessing there's a problem with your skin or project.

By default, you would see a message like this example (link is to Flare 10's own help):
https://help.madcapsoftware.com/flare10 ... rch-banana
laurence_hsia
Jr. Propeller Head
Posts: 5
Joined: Sun Nov 05, 2017 7:29 pm

Re: Displaying message when no search results found

Post by laurence_hsia »

Is it because that language of the project is Chinese? :roll:
laurence_hsia
Jr. Propeller Head
Posts: 5
Joined: Sun Nov 05, 2017 7:29 pm

Re: Displaying message when no search results found

Post by laurence_hsia »

OK, i got it. The message shows up by default when the language is English. I copied the value of search heading from English version to Chinese, and modified the message but keeping {total_results} and {query}

Thanks Dave :D
Post Reply