• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7254: WikiWords on the right-hand side of the double brackets are sometimes expanded

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

The right-hand side of a double-bracket link should always be treated as literal text. However, in some circumstances, WikiWords on the right-hand side of the double brackets are expanded. When the code that includes those WikiWords has been INCLUDEd from another web, the expansion includes the (wrong) web name!

Example (How I found this)

All webs are including their WebLeftBar topic from Shared/WebLeftBar. The content of Vicki/WebLeftBar is:

   %INCLUDE{"Shared.WebLeftBar"}%

Depending on how the content of Shared/WebLeftBar is written, we get different results, including one very unexpected possibility.

Option 1

If Shared/WebLeftBar contains:

[[%INCLUDINGWEB%.TopicTree][Topic Tree]]

We get:

In Shared Web

Item7254_ScreenShot_Example1a.png

In Including web (Vicki web)

Item7254_ScreenShot_Example1b.png

Option 2

If Shared/WebLeftBar contains only a WikiWord within the brackets:

[[%INCLUDINGWEB%.TopicTree][TopicTree]]

We get:

In Shared Web

Item7254_ScreenShot_Example2a.png

In Including web (Vicki web)

Item7254_ScreenShot_Example2b.png

Option 3

But If Shared/WebLeftBar contains additional text as well as a WikiWord within the brackets:

[[%INCLUDINGWEB%.TopicTree][My TopicTree]]

We get:

In Shared Web

Item7254_ScreenShot_Example3a.png

In Including web (Vicki web)

Item7254_ScreenShot_Example3b.png

-- TWiki:Main/VickiBrown - 2013-05-10

ItemTemplate
Summary WikiWords on the right-hand side of the double brackets are sometimes expanded
ReportedBy TWiki:Main.VickiBrown
Codebase

SVN Range TWiki-5.1.3-trunk, Fri, 12 Apr 2013, build 25760
AppliesTo Engine
Component

Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng Item7254_ScreenShot_Example1a.png r1 manage 12.0 K 2013-05-10 - 18:54 VickiBrown Screenshot
PNGpng Item7254_ScreenShot_Example1b.png r1 manage 17.5 K 2013-05-10 - 18:54 VickiBrown Screenshot
PNGpng Item7254_ScreenShot_Example2a.png r1 manage 13.1 K 2013-05-10 - 18:54 VickiBrown Screenshot
PNGpng Item7254_ScreenShot_Example2b.png r1 manage 15.3 K 2013-05-10 - 18:54 VickiBrown Screenshot
PNGpng Item7254_ScreenShot_Example3a.png r1 manage 12.0 K 2013-05-10 - 18:54 VickiBrown Screenshot
PNGpng Item7254_ScreenShot_Example3b.png r1 manage 12.8 K 2013-05-10 - 18:54 VickiBrown Screenshot
Topic revision: r1 - 2013-05-10 - VickiBrown
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback