Tags:
create new tag
, view all tags

Question

If a topic has been renamed from say TestTopica to TestTopicb

There is a history of this in the meta data of the new file.


I would like to make a list of all renamed topics in a web in order to help users find the file. Can someone suggest a method

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH7
Web server: apache
Perl version: 5.08
Client OS: Windows Linux
Web Browser: Firefox IE
Categories: Search

-- PeterJones - 12 Nov 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Hm, maybe SearchPatternCookbook#Pattern_9_Search_all_topics_that helps

-- FranzJosefGigler - 12 Nov 2007

On TWiki 4.2 you could use the new query search

%SEARCH{"moved" type="query" nosearch="on" noheader="on" nosummary="on" }%
to get the same results as described in SearchPatternCookbook.

I just don't know how to format the results properly yet.

-- FranzJosefGigler - 12 Nov 2007

Hi Franz

Thanks I didnt see that one. I'm trying the following but the pattern does not want to work. Any ideas

%SEARCH{ "META:TOPICMOVED.*" type="regex" nonoise="on" header="| *User:* | *From:* | *To:* |  *Date*: |"  format="| $wikiusername | $pattern=(^.*? from=(.*?) to=.*) | [[$topic]] | $date |" }%

-- PeterJones - 12 Nov 2007

I fear pattern doesn't support meta content properly (and you have (at least) one = too much wink ), but I'm not sure. Hope that there will be a simple format parameter for accessing all kind of meta content in the light of the query search, which is great by the way.

-- FranzJosefGigler - 12 Nov 2007

In the light of the new QuerySearch I propose to enhance the format parameter of SEARCH for TWiki 4.3 by the following 'fields':

  • $attachments.(name, attr, path, size, user, rev, date, comment )
  • $info.(author, date, format, version)
  • $parent.(name)
  • $moved.(by, date, from, to)
  • ...
This should be possible and would ease the development of TWikiApplications considerably, wouldn't it?

-- FranzJosefGigler - 12 Nov 2007

You can search for meta data such as META:MOVED, but you can't get at meta data to format the result.

-- PeterThoeny - 01 Jan 2008

 
Change status to:
Topic revision: r5 - 01 Jan 2008 - 22:03:57 - PeterThoeny
Sandbox.TestTopicb moved from Sandbox.TestTopica on 12 Nov 2007 - 11:00 by PeterJones
 
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