Search result previews in HTML5
Search result previews in HTML5
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?
Re: Search result previews in HTML5
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).
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."
Re: Search result previews in HTML5
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?
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?
Re: Search result previews in HTML5
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.