rah_link_search

Published under current TXP projects

Extends Textpattern’s search to links.

Download rah_link_search v0.4

Image: rah_link_search

Image: rah_link_search

List of features

Requirements

Installation and usage

The general behavior stands: paste plugin code to the plugin installer textarea and run the automatic setup. When done, just activate the plugin and you are ready to use the new tag, <txp:rah_link_search />.

You can now use <txp:rah_link_search /> to display links on your search results page. It works same as <txp:article /> would.

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"

wraptag
The (X)HTML tag, without brackets used to wrap the output. Default is unset.
Default: wraptag="" Example: "div"

break
The (X)HTML tag (without brackets) or string to separate list items. Default is unset.
Default: break="" Example: "br"

class
The (X)HTML class applied to the wraptag. Default is unset.
Default: class="" Example: "plugin"

grand_total
Omit setting result count. If the attribute is set to "0" (zero), search_result_count won’t be updated with the number of results. This attribute could be helpful if rah_link_search is used in conjunction with article tags, as article tags won’t update the count once it’s already set.
Default: grand_total="1" Example: "0".

Examples

Example #1: Outputs search results (if any) and the search 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>

Changelog

Version 0.4

Version 0.3

Version 0.2

Version 0.1