[search] Lowering itemcount
Posted: Sun Jun 19, 2011 6:58 pm
I have some results I don't want to show in the search results. Some frontpage gallery's etc.
I want to edit the search template so that if one of those items is found the itemcount should be lowered.
That way I can still show a message that no results where found.
I am doing it the same mather as explained here:
http://forum.cmsmadesimple.org/viewtopi ... 1&p=213934
But say you found one result and that is a result you dont want to show the "Nothing found" message wil never show.
So how can I lower the itemcount? I already tried a UDT with:
Any ideas?
I want to edit the search template so that if one of those items is found the itemcount should be lowered.
That way I can still show a message that no results where found.
I am doing it the same mather as explained here:
http://forum.cmsmadesimple.org/viewtopi ... 1&p=213934
But say you found one result and that is a result you dont want to show the "Nothing found" message wil never show.
So how can I lower the itemcount? I already tried a UDT with:
Code: Select all
$itemcount--;