Content last modified Tuesday 24 August 2021
hop to #bottom
Author:
Jukka Svahn
Current version:
0.3
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

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 />.
</txp:if_variable>

Check if on a search results page:

<txp:if_search>
	...contained statement...
</txp:if_search>
Article Request Count:

Archived [?]: superseded, built-in tag

Keywords/tags:
Initially released:
2007/6
Posted here:
30 Oct 2008

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