Skip to content

Default search page

philcal edited this page Jan 15, 2013 · 2 revisions

For Search Navpoints, the page will be chosen according to the following rules:

  1. A user specified a page widget specified on the navpoint tab.

  2. If the project contains a widget named <projectName>.pages.search it will be used.

  3. A config variable in tooltwist.conf named defaultSearchPage.

     <webapp>
       <name>webdesign</name>
       ...
       <config>
         <defaultSearchPage>myproject.pages.generic.search</defaultSearchPage>
         ...
       </config>
     </webapp>
    

If none of these can be found, an error will be written to the log file, and it will attempt to use a widget named pages.search, which probably doesn't exist and will lead to a page generation error being reported.

2013-01-16 01:23:51,739 WARN  Navpoint - Search navpoint: no page ttdemo.pages.search exists, and configuration variable defaultSearchPage is not defined.

This error message will be displayed repeatedly, until you fix the problem.

--

Clone this wiki locally