Author: Alexander Barkov Email: b...@mnogosearch.org Message:
> I'd like to have a block in the results template that would only display if I > had less than 5 results for the current search. Is this possible? Can someone > point me towards documentation supporting this? > > Thanks Conditional operators in templates are described here: http://www.mnogosearch.org/doc33/msearch-templates-oper.html I think what you're looking for is: <!IFLE NAME="total" CONTENT="5"> I AM HERE <!ENDIF> Note, this code is Ok for the "<!--restop-->" section. If you want to put this in "<!--top-->", or any other section which is printed even if no search has been done (i.e. start page with an empty form or in case in no words have been typed), then you'll need an additional condition. The "WE" variable (word hit statistics) is a good candidate for this: <!IFNOT NAME="WE" CONTENT=""> <!IFLE NAME="total" CONTENT="10"> I AM HERE <!ENDIF> <!ENDIF> Reply: <http://www.mnogosearch.org/board/message.php?id=21511> _______________________________________________ General mailing list General@mnogosearch.org http://lists.mnogosearch.org/listinfo/general