Search result previews in HTML5

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
awells12
Propeller Head
Posts: 70
Joined: Wed Sep 02, 2015 7:51 am

Search result previews in HTML5

Post by awells12 »

I have a HTML5 project created from an imported CHM file. Whenever a search is done, most of the search results have either a huge block of text for the preview or no preview at all. Does anyone know how the search result previews are generated so I can fix this?
Image
Paulie
Sr. Propeller Head
Posts: 140
Joined: Sun Mar 01, 2015 3:01 pm

Re: Search result previews in HTML5

Post by Paulie »

Hi there,

By default, the first paragraph of the topic will be displayed. However, you can override this text by adding a description to the topic properties (To get to this screen press CTRL + SHIFT + P while the topic has focus).
"In an ideal world, software should be simple, well designed, and completely intuitive to end users. In the real world, good documentation is king."
awells12
Propeller Head
Posts: 70
Joined: Wed Sep 02, 2015 7:51 am

Re: Search result previews in HTML5

Post by awells12 »

I appreciate the help, but I have 1000+ topics and don't really want to write a description for each one.

I'm not seeing anything unusual in how the topics are structured in XML so I'm wondering why some of the search results have what appears to be the entirety of the topic text in the preview and some have no preview at all. I've worked on other projects in the past and this is the first time this has happened. I've never imported a CHM file into a project before; could that have something to do with it?
Image
awells12
Propeller Head
Posts: 70
Joined: Wed Sep 02, 2015 7:51 am

Re: Search result previews in HTML5

Post by awells12 »

Looks like I have found the problem...the previews were being generated from whatever was within the first set of <div> tags found in the topic, which in some cases was all of the topic text and in other cases was code not viewable in the output. I used Notepad++ to do a mass delete of all <div> tags in the source code (I have no use for them in this project) and the search results now appear to be generating the way they should.
Image
Post Reply