Not a developer? Go to MovableType.com

Documentation

SearchResultCount

Return the number of results found across all of the blogs searched. This tag is only recognized in search templates.

Attributes

Count Attributes

singular

Allows special formatting for when the number of published objects is equal to 1.

<mt:SearchResultCount singular="1 entry">

plural

Allows special formatting for when the number of published objects is greater than 1. # is automatically replaced with the number of objects.

<mt:SearchResultCount plural="# entries">

none

Allows special formatting for when the number of published objects is 0 (zero).

<mt:SearchResultCount none="No entries">

or

<mt:SearchResultCount none="None">

Example

This returns

"1 entry" or "9 entries" or "No entry".
Back

1 Comment

afartherroom

afartherroom on November 25, 2010, 3:50 a.m. Reply

The “singular” and “plural” modifiers don’t seem to work with this count tag. It would be nice if they did.

Leave a Comment