Search term

On this page:


<txp:search_term />

The search_term tag is a single tag which returns the expression the user searched for through the full text search form.


This tag has no attributes.


Example 1: Display the search term on the search results page

    <h1>Search results</h1>
        You searched for:
        <txp:search_term />
    <txp:article />


Version 4.5.0

escape attribute deprecated.

Version 4.0.6

Tag support added.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please open an issue and we’ll investigate.