Go to main content

Search term



<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 of its own. It accepts only the global 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.

If you notice any kind of problem with this page's construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)