Tags:
create new tag
, view all tags

Question

I'm looking for a way to replicate the diff-ing capabilities of a standard search whcn clicking on the date of a topic in a FormattedSearch way. If I have to nest a search and hack together a URL that way I probably could given enough sugar and some free time, but is there an easier way?

%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 |"}%

I want to replace the actual link part of [ [ $web.$topic ][ $date ] ] with an rdiff url instead of a view url.

Topic: Changed: By:
WebStatistics 2012-05-27 - 04:02 - 3647 TWikiAdminGroup
BrowserIssues 2012-01-05 - 22:03 - 104 PeterThoeny

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

-- GrantBow - 17 Jan 2003

Answer

Uou need to build the rdiff URL. Use this instead of [[$web.$topic][$date]]:

[[%SCRIPTURL%/rdiff%SCRIPTSUFFIX%/$web/$topic][$date]]

-- PeterThoeny - 18 Jan 2003

Thanks!

-- GrantBow - 21 Jan 2003

Topic revision: r3 - 2003-01-21 - GrantBow
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, 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.