Tags:
create new tag
view all tags

Question

The usage of WikiName in a Topic which is INCLUDES(ed) to a Topic in another Web will be expanded to MAINBWEB.WIKINAME instead to WikiName. Is this behaviour intentional?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian 3.1pre1, Kernel 2.4.22
Web server: Apache 1.3.31
Perl version: Perl 5.8.1
Client OS: Windows/Linux/...
Web Browser: Any
Categories: Platform

-- SteveWeinreich - 28 Feb 2005

Answer

When you INCLUDE a topic located in Foo web into a topic in a Bar web, TWiki fixes internal links in the included topic with this rule:

  • A regular WikiWord link is changed to Foo.WikiWord link so that the link points to the correct place
  • A Bar.WikiWord link is changed to WikiWord link since it is now in the same web
  • Any Otherweb.WikiWord link is left untouched

-- PeterThoeny - 01 Mar 2005

Well I have centralized the WebLeftBar´s to the Main web and in the Main.WebLeftBar I use

$PROPERSPACE(% WIKINAME %)
for a Greeting but this breaks if the Topic is included from another web. Is there a way around this?

-- SteveWeinreich - 01 Mar 2005

In this case you can use a spreadsheet formula to cut of Main. before spacing out the name.

-- PeterThoeny - 01 Mar 2005

I notice that this expansion occurs even when the WikiName cannot be used as a link, as in [[http://www.wincvs.org/ WinCVS]] expands to look like Otherwebname.WinCVS

Try using a ! before the wikiname you want to render as a non-link like this: [[http://www.wincvs.org/ !WinCVS]]

-- RobertEchlin - 22 Mar 2005

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-03-22 - RobertEchlin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.