<mt:SearchResults>

A container tag that creates a list of search results. This tag creates an entry and blog context that all Entry* and Blog* tags can be used.

This tag is only recognized in search templates.

This page was last updated on 1969-12-31, 16:00.

2 Notes

<mt:searchresults> seems to take the modifiers "sort_order" and "sort_by" (same as <mt:entries>) correctly.

So you can do something like

The SearchSortBy and SearchResultDisplay configuration directives may not be essential to achieve a sorting of search results as the code instance above seems to correctly combine the effect of both configuration and has the added advantage of not being system-wide but usable on a per-template/per-blog basis.

In fact, the configuration directives will conflict with, and over-ride, this usage in the template.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.