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
--
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
but that horrible.....
and it tells me that we've got work to do
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

thanks for the link
i recon that some $rev equivalent to that in the SEARCH format field should be in the core

(mmm, sorry, i don't watch the changes on this web enough ..
--
SvenDowideit - 01 Jan 2004