Tags:
create new tag
, view all tags

Feature Proposal: Add number of topics variable to Formatted Search

Motivation

The AddFooterParameterToSEARCH allows people to specify a custom footer. WIBNI you can specify the number of topics found?

Description and Documentation

In FormattedSearch, add this to format parameter table:

$ntopics Number of topics found in current web. This is the current topic count, not the total number of topics
$nhits Number of hits if multiple="on". Cumulative across all topics in current web. Identical to $ntopics unless multiple="on"

Add this to footer parameter table:

$ntopics Number of topics found in current web
$nhits Number of hits if multiple="on". Cumulative across all topics in current web. Identical to $ntopics unless multiple="on"

Impact

Implementation

The $ntopics perl variable already exists in TWiki::Search. A new $nhits needs to be introduced for the number of hits.

This is tracked in TWikibug:Item6184

-- Contributors: PeterThoeny - 15 Feb 2009

Discussion

This is now implemented.

-- PeterThoeny - 16 Feb 2009

 
Topic revision: r4 - 2009-02-16 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.