Tags:
create new tag
, view all tags

Question

I looked but can't find an answer anywhere. I looked a bit through some source code as well to find the default values. Basically I'm replicating the results one gets with the FormattedSearch special stuff, but I like the column headers to click on to sort. I hope that makes sense.

On my GrantBow page I have changed my searches to look like this. What I'd like to do now is change it so that the resulting table has an attribute of tablewidth="90%". I tried setting a TABLEATTRIBUTES variable in the page but it didn't seem to make any difference.

%TABLE{ tablewidth="90%" }%
%SEARCH{ "GrantBow" web="Support" scope="text" nosearch="on" nosummary="on" nototal="on"
regex="off" order="modified" reverse="on" limit="2"
header="| *Topic:* | *Changed:* | *By:* |"
format="| $web.$topic | [[$web.$topic][$date]] - $rev | $wikiusername |"}%

Topic: Changed: By:
WebStatistics 2012-02-10 - 08:05 - 3531 TWikiAdminGroup
BrowserIssues 2012-01-05 - 22:03 - 104 PeterThoeny

The other little thing I'm looking for to make this search "perfect" is how to get the dates to link to rdiff URLs instead of view URLs.

  • TWiki version: twiki.org
  • Perl version:
  • Web server & version:
  • Server OS:
  • Web browser & version:
  • Client OS:

-- GrantBow - 15 Jan 2003

Answer

I got around this by sticking it in a table as a limit and adjusting with spacing seperators applied as in $topic(19).

Onward and upward.

-- GrantBow - 17 Jan 2003

The trick is to use the TABLE variable before the SEARCH variable. Above example is updated.

-- PeterThoeny - 18 Jan 2003

Aha! Thanks! Updating documentation in TWiki.TWikiVariables now.

-- GrantBow - 18 Jan 2003

Topic revision: r4 - 2003-01-18 - GrantBow
 
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.