Displays the search request input by the user as well as the number of posts found, depending on the string parameter. This tag is only available in the search.thml file.
The formatting string used to display the request.
%1$s
is replaced by the request input by the user%2$s
is replaced by the number of posts found
Default value is %1$s
.
Note:
The expression included in the string parameter can be written in English so that Dotclear can automatically translate it in the blog language.<tpl:SysIf search_count="==0"> <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned no result."}}</p> </tpl:SysIf> <tpl:SysIf search_count="==1"> <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> result."}}</p> </tpl:SysIf> <tpl:SysIf search_count=">1"> <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> results."}}</p> </tpl:SysIf>
This example is an abstract from the search.html file of Dotclear 2.1 default theme.
Wiki powered by Dokuwiki.