cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Topic Markup Language and applications: Answered

how extract number of topics from SEARCH result?

I know that the Topic count plugin is broken, so I try to find an other solution.

Using the SEARCH function, I can display the numer of files found, but how can I get rid of the phrase, or other question, how can I GET the number of topics and write it where I want:

Foswiki's Main Web has

%SEARCH{ 
   "1" 
   type="query"
   web="Main"
   excludetopic="Web*,Category*,*Template,*Form"
   nosummary="on" 
   nosearch="on" 
   nototal="off" 
   noheader="off" 
   format=""
}%

topics.

gives me:
Foswiki's Main Web has
Number of topics: 7210
topics.

I want to see
Foswiki's Main Web has 5038 topics.

-- LieVen - 05 May 2014

Try

Foswiki's Main Web has 7210 topics.

Foswiki's Main Web has %SEARCH{ 
   "1" 
   type="query"
   web="Main"
   excludetopic="Web*,Category*,*Template,*Form"
   nosummary="on" 
   nosearch="on" 
   nototal="on" 
   noheader="on" 
   format=""
   footer="$ntopics"
}% topics.

-- GeorgeClark - 05 May 2014
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r2 - 05 May 2014, GeorgeClark - This page was cached on 20 Sep 2018 - 04:34.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy