r2 - 04 Feb 2005 - 08:07:21 - PeterThoenyYou are here: TWiki >  Codev Web > ChangeProposal > FeatureRequest > FormattedSearchSummaryWithExpandVar
Tags:
, create new tag

Feature Proposal: Formatted Search Summary with Expand Var

Motivation

Add a $summary(expandvar) to the FormattedSearch to get a summary with expanded variables. Useful for TWikiApplications.

Description

The FormattedSearch already supports a $summary(showvarnames) to show the variable names, e.g. %TOC% is shown as TOC (without the percent).

With the new $summary(expandvar) feature it is possible to get the variable expanded.

Related, the default $summary() strips all variables. It also strips all percent signs. This change retains the percent signs and <nop> tags, so that text with an escaped variable gets rendered identical in the rendered text and topic summary, e.g. as %TOC%. This is relevant for related work going on, TipOfTheDayFeatureRequest.

Impact and Available Solutions

Documentation

In FormattedSearch change $summary(showvarnames) add $summary(expandvar):

$summary(showvarnames) Topic summary, with %ALLTWIKI{...}% variable names shown unexpanded in raw format
$summary(expandvar) Topic summary, with %ALLTWIKI{...}% variables expanded (at a performance cost)

Examples

Implementation

This is now in DEVELOP branch, r3592.

-- PeterThoeny - 04 Feb 2005

Discussion:

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo