4 Replies Latest reply on Mar 12, 2015 1:26 AM by Willam van Weelden

    Remove 'search results per page' and number of results text box

    tanima roy Level 1

      Hi,

       

      I require help in hide/remove the number of results text box and the content 'search results per page' from the Robohelp 8help output. Can you please help what changes do I need to do in the code and in which file. I believe there must be some way to achieve this. Will appreciate your help. Kind of urgent!!!   I require help in hide/remove the number of results box and search results per page from the Robohelp help output. Can you please help what changes do I need to do in the code. Will appreciate your help. Kind of urgent!!!

       

      Thanks in advance

      Tanima

        • 1. Re: Remove 'search results per page' and number of results text box
          Jeff_Coatsworth Adobe Community Professional & MVP

           

          Those are all controlled by the options you choose when you generate the help in the Single Source Layouts pod. You’ll need to reselect & regenerate the help to turn those things off.

           

          • 2. Re: Remove 'search results per page' and number of results text box
            tanima roy Level 1

            Hi,

            Thanks for your response. In Robohelp 8 there are no options for hiding the search results per page feature while generating the output. Can you please guide me. I tried removing the content from the output by commenting out the followig code from the whform.htm file. However, the text box showing 10 remains. I cannot remove that. Can you suggest?

            gsMaxSearchTitle = "Search results per page" ; 

            gsMaxSearchTitle = "Search results per page";

             

             

             

            if (window.gbWhForm)

            {

            RegisterListener2(this, WH_MSG_SHOWTOC);

            RegisterListener2(this, WH_MSG_SHOWIDX);

            RegisterListener2(this, WH_MSG_SHOWFTS);

            RegisterListener2(this, WH_MSG_SHOWGLO);

            RegisterListener2(this, WH_MSG_SEARCHTHIS);

            RegisterListener2(this, WH_MSG_BACKUPSEARCH);

            RegisterListener2(this, WH_MSG_HILITESEARCH);

            RegisterListener2(this, WH_MSG_GETSEARCHSTR);

            RegisterListener2(this, WH_MSG_SETSYNSTR);

            RegisterListener2(this, WH_MSG_GETMAXRSLT);

            RegisterListener2(this, WH_MSG_SETNUMRSLT);

            RegisterListener2(this, WH_MSG_GETNUMRSLT);

            gfunLookUp = ftsLookup;

            gfunInit = null;

            gstrFormName = "FtsInputForm"

            gsTitle = "Type in the word(s) to search for:";

            gsTitle = "Type in the word(s) to search for:";

            gsHiliteSearchTitle = "Highlight search results";

            gsHiliteSearchTitle = "Highlight search results";

            gsMaxSearchTitle = "Search results per page" ;

            gsMaxSearchTitle = "Search results per page";

            setGoImage1("wht_go.gif");

            setBackgroundcolor("White");

            • 3. Re: Remove 'search results per page' and number of results text box
              Jeff_Coatsworth Adobe Community Professional & MVP

              Well, frankly I’d recommend moving up to a newer version of RH because with RH8, there’s no support for new browser security changes that are going to blank out your help entirely.

              • 4. Re: Remove 'search results per page' and number of results text box
                Willam van Weelden Adobe Community Professional & MVP

                You have to modify both whfform.htm and whfhost.js. Whfform builds the top form and you have to remove the number of search results field there. (It's being added in JavaScript.)

                 

                In whfhost.js the search result is paged and written. If you search for <table and <td you will find the location where it is created. (In RH11 the functions writeTableHead and writeResult) I'm not sure it's easy to remove the paging though.