Content last modified Monday 6 March 2017
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
Article modified:
24 Jul 2012

Comments/questions? Leave a message in the form.

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern