Tags:
create new tag
, view all tags

Question

how can i (using twiki syntax) make a link to a topic, specifying a particualr revsion (without resorting to writing the URL)

see SvenDowideit

I'd like to write something like SvenDowideit.r12

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- SvenDowideit - 21 Aug 2003

Answer

Use this general format:

<a href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/FooBarTopic?rev=1.12">Foobar text</a>

or more specifically, to reference a topic in another web (as in your example):

<a href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/Main/SvenDowideit?rev=1.12">SvenDowideit</a>

Also, I think it's kind of nice sometimes to open up a different version of a specific topic in a new window. Use this slightly modified version:

<a target=_blank href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/Main/SvenDowideit?rev=1.12">SvenDowideit</a>

Example: See version 1.12 of SvenDowideit. - opens a new window

View this page in raw format. - opens a new window

-- MartyBacke - 21 Aug 2003

hey Marty - thanks smile

but that horrible.....

and it tells me that we've got work to do smile

i want to be able to do this without resorting to HTML

its somewhat related to RestructureCodevWorkFlow, in that having a wiki syntax for specifying both a revision id or a date on a link should be possible

-- SvenDowideit - 23 Aug 2003

So when you said no html, you meant it. Well, I guess then you're out of luck, since you can't do this without html (albeit a small amount of html). I thought your original question had to do with not wanting to type the absolute url address.

-- MartyBacke - 26 Aug 2003

Shouldn't the RevisionLinkPlugin solve this?

-- PeterKlausner - 28 Aug 2003

yes smile thanks for the link

i recon that some $rev equivalent to that in the SEARCH format field should be in the core smile (mmm, sorry, i don't watch the changes on this web enough ..

-- SvenDowideit - 01 Jan 2004

Topic revision: r6 - 2004-01-01 - SvenDowideit
 
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.