Difference between revisions of "Search Functions"

From GeeklogWiki
Jump to: navigation, search
(didn't want to delete it yet in case there are any external links to it ...)
 
Line 1: Line 1:
'''Note:''' This page describes the old search API. As of Geeklog 1.6.0, plugin authors are encouraged to use the new search API, described here: [[Using Geeklog's Improved Search Engine]]
+
This page is obsolete. Instead, please refer to:
  
 
+
* [[Using Geeklog's Improved Search Engine]] (Geeklog 1.6.0 and later)
If you want your plugin to be searchable, implement these functions.
+
* [[Using Geeklog's Search Engine]] (Geeklog 1.5.x and earlier)
 
 
      <table cellpadding="2" cellspacing="2" border="1" width="90%" align="Center">
 
        <caption align="bottom">Table 3. Search functions</caption>
 
          <tr>
 
            <th valign="top">Function</th>
 
            <th valign="top">Description of Function</th>
 
          </tr>
 
          <tr>
 
            <td valign="top" class="codeheader">plugin_getsearchtypes_&lt;plugin name&gt;</td>
 
            <td valign="top" class="code">You will probably want to add a
 
    new type in the Type drop down on search.php.&nbsp; This function prints the option tags needed. make sure that the value tag is &lt;plugin name&gt;</td>
 
          </tr>
 
          <tr>
 
            <td valign="top" class="codeheader">plugin_dopluginsearch_&lt;plugin name&gt;</td>
 
            <td valign="top" class="code">Takes the search criteria and lets you build search results for your plugin.&nbsp; This returns a string
 
array of table rows, one row for each record returned by your search.</td>
 
          </tr>
 
      </table>
 
 
 
 
 
[[Category:Plugin Development]]
 

Latest revision as of 16:51, 6 June 2009

This page is obsolete. Instead, please refer to: