We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You must opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>RCSTopicChanges (03 Nov 2006, PeterThoeny)
Tags:
create new tag
, view all tags

Question

We use special software to semantically index electronic documents, including our division's internal wiki. However, this software believes that every wiki topic has changed each time it runs an update (weekly) even the ones that haven't been touched. I'm guessing that this has something to do with the RCS but I'm not positive. Is the RCS modifying the topics in some way such as changing the date in the meta data? Is there some way to prevent this? Thanks in advance.

Environment

TWiki version: TWikiRelease04x00x05 (I'm not actually positive which version it is, but this is the build we have: Fri, 31 Mar 2006 build 9626, Plugin API version 1.1)
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Sun Solaris
Web server: Apache
Perl version: ?
Client OS: Windows XP
Web Browser: IE 6.x
Categories: Version control

-- AmandaSmith - 03 Nov 2006

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.

You probably need to tell your indexer the modification date of the topic. One way is probably a date meta data put into the html header, such as:

<meta name="date" content="2006-11-03T17:24:14+00:00">

You can get the modification timestamp with %REVINFO{"$time"}% (which is 03 Nov 2006 22:07:20 for this topic). You can use a SpreadSheetPlugin formula to convert that into ISO 8601 format:

%CALC{$FORMATGMTIME($TIME(%REVINFO{"$date $time"}%), $year-$mo-$dayT$hou:$min:$secZ)}%

returns 2006-11-04T06:07:00Z for this topic.

You can put this CALC into a meta data tag, and add that to a skin template file. Or, you can misuse the HTTP_EQUIV_ON_VIEW in TWikiPreferences to set the mata data globally on all topics:

   * Set HTTP_EQUIV_ON_VIEW = <meta name="date" content="%CALC{$FORMATGMTIME($TIME(%REVINFO{"$date $time"}%), $year-$mo-$dayT$hou:$min:$secZ)}%" />

Best to set that in Main.TWikiPreferences for easier upgrade. (Set it to the current value of TWiki.TWikiPreferences' HTTP_EQUIV_ON_VIEW, followed by the meta data tag.)

-- PeterThoeny - 03 Nov 2006

 
Change status to:
Topic revision: r2 - 03 Nov 2006 - 22:07:20 - PeterThoeny
 
TWIKI.NET
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