[search] Lowering itemcount

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
vinyl
Forum Members
Forum Members
Posts: 149
Joined: Mon Jul 13, 2009 8:18 pm

[search] Lowering itemcount

Post by vinyl »

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:

Code: Select all

$itemcount--;
Any ideas?
Post Reply

Return to “The Lounge”