Content last modified Tuesday 24 August 2021
hop to #bottom
Jukka Svahn
Current version:
About It:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!


Rah_if_search has been superseded by Textpattern core. As of Textpattern v4.3.0 release built-in tags can offer the same functionality as rah_if_search. Namely tags such as if_search, variable, if_variable and search_term. The variable tags offer an excellent way to do generic comparison operations, such as checking the searched term.

To compare the searched term to an user defined value:

<txp:variable name="search_term" value='<txp:search_term />' />

<txpif_variable name="search_term" value="cat">
	You searched for a cat.
<txp:else />
	You search for a <txp:search_term />.

Check if on a search results page:

	...contained statement...
Article Request Count:

Archived [?]: superseded, built-in tag

Initially released:
Posted here:
30 Oct 2008

You know you want to visit the Archives.
Published with Textpattern