rah_link_search
Published under current TXP projects
Set up a simple frontend link search. Search query matches needle to link’s name, description and url, and returns results.
Image: rah_link_search
List of features
- Style search results with Textpattern’s link forms.
- A simple tag,
<txp:rah_link_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.x.x+
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_link_search /> to display the search results. Works kinda identically as <txp:article />.
Attributes
The tag is <txp:rah_link_search /> and attributes for it follow.
form
Textpattern’s link form used to display search results.
Example: form="linkform" Default: "plainlinks"
Examples
Example #1: Outputs search results and form.
<txp:search_input />
<txp:rah_link_search />
Example #2: Used as a container tag.
<txp:rah_link_search>
<h3><txp:link /></h3>
<p><txp:link_description /></p>
</txp:rah_link_search>