Hello Richard,
I'm sorry, I don't know how old is that FAQ article but here is the working example (and I believe you can find more just by searching the forums as first)...
For showing the total number of the search results, please open
~\CMSModules\SmartSearch\Controls\SearchResults.ascx.cs and there find this code:
// Search
DataSet results = SearchHelper.Search(parameters);
int numberOfResults = parameters.NumberOfResults;
if ((MaxResults > 0) && (numberOfResults > MaxResults))
{
numberOfResults = MaxResults;
}
Below these lines of code please put:
// Show now results found ?
if (numberOfResults == 0)
{
lblNoResults.Text = NoResultsText;
lblNoResults.Visible = true;
}
// this is custom clause
else
{
lblNoResults.Text = numberOfResults.ToString();
lblNoResults.Visible = true;
}
RequestStockHelper.Add("totalNumber", lblNoResults.Text);
And now go to CMS Desk and to the properties of your search web part and open the transformation, in that transformation put:
<%# IfCompare(DataItemIndex,0, "", RequestStockHelper.GetItem("totalNumber")) %>
After you do this, you should see the total number of results..
Best Regards,
Martin Danko