4 Replies Latest reply: Dec 7, 2014 8:30 PM by Amebr RSS

    responsive html 5 layout: Search results

    peter_xxx Community Member

      Hello All,

       

      I have some questions about the search result page in Responsive HTML5 layout.

       

      If you do search in responsive html5 layout you get the topic title as a clickable link. And underneath that you get the htm path to that topic. The next line then is the first line from the topic.

       

      search results.jpg

      Does somebody know how to change this so that I don't thet the htm path in my search results. After the first clickable link I would like to get either just the first line, or if this is possible at all, the first two lines.

       

      Also does somebody know where you specify the default settings for the search options?

       

      search options.jpg

       

      We are using robohelp 11 if that might be important for this question.

       

      thank you in advance

       

      Peter

        • 1. Re: responsive html 5 layout: Search results
          Amebr Community Member

          For the URL, that should be controlled by your screen layout. It should be simple to delete it. I can't help with your other questions, sorry.

          • 2. Re: responsive html 5 layout: Search results
            Willam van Weelden CommunityMVP

            Before you begin, if you are on RH11.0.3, make sure you have the following hotfix installed: Issues in RoboHelp 11.0.3

            This hotfix is required, otherwise you won't be able to open .slp pages.

             

            Remove the URL from Theme1:

            1. Open Topic.slp.
            2. Switch to HTML mode.
            3. Remove the code: <?rh-msp-search-result-url class="wSearchURL" ?> (line 295 by default).

             

            As for the length of the preview, I'm not sure that it can be changed.

             

            Default settings:

            • Highlight search results:
              1. Open Topic.slp.
              2. Switch to HTML mode.
              3. Find  <?rh-msp-search-highlight-control id="highlightsearch"
              4. Set value for attribute checked. You can choose between true (enabled) or false (disabled).
            • All words search:
              1. Open Topic.slp.
              2. Switch to HTML mode.
              3. Find  <?rh-msp-search-and-control id="andsearch"
              4. Set value for attribute checked. You can choose between true (enabled) or false (disabled).
            • Number of search results: No matter what you choose in the layout editor, it simply gets reverted to default on generation. To fix this, I suspect you would need to change the output file. In the output, search for searchResCount and change the available options.

             

            Kind regards,

             

            Willam

            • 4. Re: responsive html 5 layout: Search results
              Amebr Community Member

              I just found where you set the default number of search results per page and how much of the topic text is display! It's in the SSL!

               

              Search-Settings.png