Search2Plugin

search2 (fulltext search)

1. Create the Collection "search" with the following .configxml:

2. Put the following fullsearch.xsl file into the theme directory of your design. For example, if you use the 2 column design, put fullsearch.xsl in themes/2-cols/ . The fullsearch.xsl should look like this:

3. Put the following customsearch.php in inc/bx/plugins or in localinc/bx/plugins:

note :

  1. if you don't use bookmarks, you should comment line 38 from customsearch.php
  2. in line 55, you should change 'news' to whatever your blog collection name is.

4. Make the search collection visible and enjoy the search.

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Nov 13, 2009

    Anonymous says:

    Hmm. The following error is throwN: <code> Fatal Error: Call to a member ...

    Hmm. The following error is throwN:

    <code>
    Fatal Error: Call to a member function xpath() on a non-object in ./fluxcms/inc/bx/plugins/customsearch.php on line 101
    </code>

    Do you have an Idea how to solve this?

    1. Nov 13, 2009

      Anonymous says:

      This error occurs, if the bookmark plugin is not available. Just comment out lin...

      This error occurs, if the bookmark plugin is not available.
      Just comment out line 38 of customsearch, and all is OK.

      Thomas.