SID-01323: TagME in Templates
| Status: |
Answered |
TWiki version: |
5.1.0 |
Perl version: |
5.12.4 |
| Category: |
CategoryPlugins |
Server OS: |
Ubuntu 11.10 |
Last update: |
14 years ago |
Hi,
i have quite trouble with the Plugin Tagme in Templates.
when i have this
%TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%
after crating a topi from this template i have this:
%TAGME{ tpaction="" web="Sandbox" tag="" }%
The
%STARTSECTION{ type="expandvariables" }% semms to be work only with links
[[%USERSWEB%][test]]
In that Topic
TWikiTemplates at the quite end, OlivierBerger says, that work:
%TAGME{ tpaction="%URLPA%NOP%RAM{tpaction}%" tag="%URLPA%NOP%RAM{tag}%" }%
But it doens't work.
Please give me a hint, how to "protect this variable". Thank you
--
FrankFauerbach - 2011-11-08
Discussion and Answer
It looks like you want to prevent variable expansion. Do that by either enclosing your variables in a
%STARTSECTION{type="templateonly"}%...%ENDSECTION{type="templateonly"}% section, or by escaping single variables with
%NOP%.
--
PeterThoeny - 2011-11-08
Hi Peter,
as i wrote, the variables are already in the Section "templateonly".
As i wrote in my topic, i try with %NOP% but it won't work.
Frank
--
FrankFauerbach - 2011-11-10
Oops, I take that back,
"templateonly" sections will be removed when a topic is instantiated.
Strange,
"%URLPA%NOP%RAM{tpaction}% should work. Time to debug.
--
PeterThoeny - 2011-11-10
Hi Peter,
any news?
--
FrankFauerbach - 2011-12-01
I invite you to debug. TWiki developers devote time to improve the product, but users cannot expect to get free support. TWiki is an open source project where users are invited to take
and contribute. If you need timely help I invite you to
hire a TWiki consultant.
--
PeterThoeny - 2011-12-01
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.