rah_plugin_search
Published under current TXP projects
Simple articles versus plugins search. Default search searhes matching results from plugins’ description and help fields. When finding matching result, it tries to find an article that is titled with the matching plugin’s name, and that way displaying it in the search results. Basically powers the plugin search at Rahforum.biz.
Image: rah_plugin_search
List of features
- When finding matching results it tries to find article titled with the matching plugins name, displaying it in the search results.
- Style search results with Textpattern article forms.
- Really small and light code.
- A simple tag,
<txp:rah_plugin_search />. The tag shows search results. - The search works with the stannard core
?q-GET search. Core conditionals and forms can work too, including<txp:if_search />.
Requirements
- PHP 4.3.0
- Textpattern 4.0.4+
Installation and usage
The general behavior stands: paste plugin code to the plugin installer textarea and run the automatic setup. Then just activate the plugin and you are ready to use new tags that plugin includes like others.
For usage, basically use <txp:rah_plugin_search /> to display the search results. Works kinda identically as <txp:article />.
Attributes
The tag is <txp:rah_plugin_search /> and attributes for it follow.
form
Textpattern’s article form used to display search results.
Example: form="default" Default: "search_results"
Example
Outputs search results and form.
<txp:search_input />
<txp:rah_plugin_search />