If search

On this page:



The if_search tag is a conditional tag and always used as an opening and closing pair, like this…

    …conditional statement…

The tag will execute the contained statements if the called page is the result of a search.


This tag has no attributes.


    <link rel="stylesheet" href="<txp:css name="search" />">
<txp:else />
    <link rel="stylesheet" href="<txp:css />">

Selects a stylesheet named ‘search’ when search results are being displayed, or a stylesheet determined by the active section for normal page display.

Other tags used: else, css.

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