Web
:
all pages with Web : %SEARCH{"*" topic="*Web*" excludetopic="*Home" format="$topic" separator=", " nonoise="on"}% |
result: FoswikiOnWebHost1and1, InstallStepConfigureWebServer, InstallStepConfigureWebServerSolaris10, InstallStepConfigureWebServerWindowsApacheActivePerl, WebAtom, WebChangesBoxLikeTwiki, WebCreateNewTopic, WebFormManagement, WebLeftBar, WebLinks, WebNotify, WebPreferences, WebRss |
using TOPICCOUNT: %TOPICCOUNT{topic=" Searched: "*" topic="Web*" excludetopic="*Home" format="$topic" separator=", " nonoise="on"
Number of topics: 0 " }%
|
result: Oh no, the plugin isn't installed here so I can't demonstrate the actual result. On my (nonpublic) installation, the result value is 2. |
using formatted search: %SEARCH{"*" topic="Web*" excludetopic="*Home" format="" separator="" nosummary="on" nosearch="on" noheader="on" }% |
result: Number of topics: 9 ...but I wanted only the number, not the prefixed label. |
topic="Web*"
but got the same (wrong) result that way. Avoiding the embedded search would be very nice, so if that's an easier solution then I'm eager to see it work.
-- TorbenGB - 05 Apr 2011
%SEARCH{ "name~'Web*'" type="query" nonoise="on" format="" footer="$ntopics" }%QuerySearch explains other operators such as
=~
(regex) and further search constraints too.
-- PaulHarvey - 07 Apr 2011
Subject | Using an extension |
Extension | TopicCountPlugin |
Version | Foswiki 1.1.2 |
Status | Answered |