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.
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