You are here: Foswiki>Tasks Web>Item1943 (04 May 2018, GeorgeClark)Edit Attach
Because of the order the page is rendered, Interwiki urls are known too late to be used in an INCLUDE. Which is a pity, because for INCLUDES we must use absolute urls.

Options:
  1. Let Interwiki plugin render the variable before INCLUDE is called
  2. Give INCLUDE an Interwiki parameter
  3. Give Interwiki plugin an INCLUDE variable

AC

Item3668 apparently uses included Interwiki links without obvious problems, possibly add more detail to this item.

-- TWiki:Main.SteffenPoulsen - 24 Sep 2007

I made a test at IncludeInterwikiTest. It does not work.

-- TWiki:Main.ArthurClemens - 25 Sep 2007

Thanks - I understand the problem now.

-- SteffenPoulsen - 25 Sep 2007

Option 1 is not possible because INCLUDE is an internal variable and gets evaluated before plugins.

How about testing in INCLUDE if an interwiki pattern is present and expand it? We are in code freeze, so not for 4.2.

-- TWiki:Main.PeterThoeny - 30 Sep 2007

Still not working. Test topic: IncludeAnInterwikiLink

-- AndrewJones - 19 Jul 2010

The INCLUDE Macro seems to have it own set of Include Handlers. Like doc. Would it be possible to have a handler wich handles unknown handles. So expand the Interwiki and then use the http or https handler?

-- AlexanderKoch - 19 Dec 2012

Item3135 is a duplicate of this task. Marked this proposal required.

-- Main.GeorgeClark - 18 Jul 2015 - 03:21

As I've chased this down several times, not understanding what it's really asking for, this is saying that you cannot %INCLUDE{"Interwiki:link"}% as a page include. Interwiki links are expanded in a preRendering handler, which happens after all macros have been expanded.

-- GeorgeClark - 04 May 2018
 

ItemTemplate edit

Summary Interwiki urls not usable with INCLUDE
ReportedBy TWiki:Main.ArthurClemens
Codebase
SVN Range Sun, 19 Mar 2006 build 9373
AppliesTo Extension
Component InterwikiPlugin
Priority Enhancement
CurrentState Proposal Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r12 - 04 May 2018, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy