Tags:
create new tag
view all tags

Question

Is it possible to use a twiki include to include a page and pass it URL params?

Something like:

%INCLUDE{"TestPage?param=this"}%

I would like to still be able to use %TOPIC% and %BASETOPIC% in the included page, so I don't think an include with a full http specification would work.

And in my case, I can't use the full http:// include style because then the authentication does not seem to work correctly. frown

Any ideas?

  • TWiki version: 01 Feb 2003
  • Perl version: 5.6.1
  • Web server & version: Apache 1.3
  • Server OS: Linux
  • Web browser & version: Mozilla 1.0
  • Client OS: Linux

-- AllenBierbaum - 11 Feb 2003

Answer

Not an answer, but I have reopened this since I want to do exactly the same thing. (Not clear why it was closed in the first place - apologies if I have stepped on somebody's toes here.) Closely related to DifficultyWithURLParameters

-- RossC - 01 Jul 2003

This does not work because an %INCLUDE{"TestPage"}% includes the raw text, e.g. not rendered topic text.

You can include the URL of the topic to get the rendered text, where you can also supply parameters, possibly stripping off the page decoration with the plain skin:

%INCLUDE{"%SCRIPTURL%/view%SCRIPTSUFFIX%/%WEB%/TestPage?param=this&skin=plain"}%

-- PeterThoeny - 02 Oct 2003

Unfortunately this doesn't work if SCRIPTURL resolves to a string starting with https (instead of http) .

-- SimonHardyFrancis - 16 Jul 2004

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2004-07-16 - SimonHardyFrancis
 
  • 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.