NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item5326: Unexpected effect of INCLUDE when included topic is from another web and returns a WikiWord

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Low No Action Required Engine INCLUDE  
---+ !! Tool %INCLUDE{"LitterTray.TableField" CellValue="Tool"}%
produces:

Tool

Warning: Can't find topic LitterTray.TableField
Home: Tools list   Parent topic
Tool: FrameMaker * Name of the tool


expected heading:

Tool FrameMaker


so: Why the hack is the name of the web used in INCLUDE added when the result of the included search is a WikiWord?

-- TWiki:Main/FranzJosefGigler - 05 Feb 2008

Of course I can work around this by adding <nop> to the search, but IMHO this shouldn't be possible at all --> bug.

-- TWiki:Main.FranzJosefGigler - 05 Feb 2008

I believe this is spec. If you include a topic from another web, plain WikiWord links need to be prefixed, e.g. linked as Otherweb.WikiWord so that links continue to work.

-- TWiki:Main.PeterThoeny - 09 Feb 2008

Hm, can live with that as I have a workaround, but I think this behaviour should be somehow documented as the search result is the WikiWord that gets expanded.

-- TWiki:Main.FranzJosefGigler - 11 Feb 2008

ItemTemplate edit

Summary Unexpected effect of INCLUDE when included topic is from another web and returns a WikiWord
ReportedBy TWiki:Main.FranzJosefGigler
Codebase
SVN Range TWiki-5.0.0, Wed, 23 Jan 2008, build 16283
AppliesTo Engine
Component INCLUDE
Priority Low
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r5 - 14 May 2012, FranzJosefGigler
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads