rah_if_search

Published under current TXP projects

Extends search conditional with a new name-attribute.

Download rah_if_search v0.3

Image: rah_if_search

Image: rah_if_search

Intro and description

The plugin, rah_if_search, extends the core <txp:if_search>-function with a name-attribute. The new name-attribute is searchcriteria relative, and outputs wrapped content only if the search term is same than the value. Alternatively, if the name-attribute is left empty, the plugin and tag, works the same way as the normal inbuild <txp:if_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. Then just activate the plugin and you are ready to use new tags that plugin includes like others.

Attributes

The tag is, a container tag, <txp:rah_if_search> and attributes for it follow.

name
A search term that will output the surrounded content.
Default: name="" Example: "dog"

Example

<txp:rah_if_search name="dog">
	You entered search term "dog".
<txp:else />
	You looked something else.
</txp:rah_if_search>

Changelog

Version 0.3

Version 0.2

Version 0.1