Go to main content

Search term

Contents

Syntax

<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.

Attributes

This tag has no attributes of its own. It accepts only the global attributes .

Examples

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

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

Genealogy

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. :)