<txp:if_search /> container tag, 0 attributes


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.

<txp:if_search /> 1 examples

Select a different stylesheet during search

  <link rel="stylesheet" href="<txp:css n="search" />" type="text/css" />
<txp:else />
  <link rel="stylesheet" href="<txp:css />" type="text/css" />

What this does…
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