• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5009: TWISTY link parameter doesn't support (local) variables (set in topic and used with %) properly

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TwistyPlugin Normal Closed   minor 4.2.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

See in TestTopic16. The left bar moves down.

-- TWiki:Main/FranzJosefGigler - 23 Nov 2007

I don't understand the issue. What does the left bar have to do with the local variables?

-- TWiki:Main.ArthurClemens - 23 Nov 2007

Did you click the test topic? The start position of the left bar depends on the status of the twisty when I use a local variable in the link parameter.

I wanted to show the number of infos (all individual topics) added to a topic in the twisted heading. Got the number via a combination of SEARCH and CALC. If I directly use the CALC in the link parameter the topic goes completely gaga (see TestTopic17), so I tried a workaround using local variables which did work somehow in firefox but didn't with the internet explorer. So I guess there's some conflicting CSS issue going on here.

-- TWiki:Main.FranzJosefGigler - 23 Nov 2007

TWiki variables should be escaped to prevent early rendering. Twisty does not yet support that.

-- TWiki:Main.ArthurClemens - 24 Nov 2007

It does now.

Your syntax:

<!--
   * Set INFOCOUNT = %CALC{"$GET(infoCount)"}%
-->

<!--
%CALC{"$SET(infoCount,3)"}%
-->

%TWISTY{
mode="div"
id="%BASEWEB%_%BASETOPIC%_currentInfoList"
prefix="<h2>"
link="Infos ($percntCALC{$quot$dollarGET(infoCount)$quot}$percnt)"
showimgleft="%ICONURLPATH{toggleopen}%"
hideimgleft="%ICONURLPATH{toggleclose}%"
suffix="</h2>"
remember="on"
}%
<form name="infoList" action="%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%" method="get">
<table width="90%">
<tr>
<td width="40%">Add <u>new</u> Info </td>
<td>Category: 
<select name="InfoCategory" size="1" onchange="this.form.submit();">
<option %IF{" '%URLPARAM{InfoCategory}%' = '' " then="selected=\"selected\""}% value="">All</option>
<option %IF{" '%URLPARAM{InfoCategory}%' = 'Common' " then="selected=\"selected\""}%>Common</option>
<option %IF{" '%URLPARAM{InfoCategory}%' = 'Special' " then="selected=\"selected\""}%>Special</option>
</select>
</td>
</tr>
</table>
</form>
%ENDTWISTY% 

-- TWiki:Main.ArthurClemens - 24 Nov 2007

Will test this tomorrow on my machine. Thanks in advance!

-- TWiki:Main.FranzJosefGigler - 25 Nov 2007

In the meantime I have updated the test topics.

-- TWiki:Main.ArthurClemens - 25 Nov 2007

ItemTemplate
Summary TWISTY link parameter doesn't support (local) variables (set in topic and used with %) properly
ReportedBy TWiki:Main.FranzJosefGigler
Codebase 4.2.0
SVN Range TWiki-4.3.0, Thu, 15 Nov 2007, build 15610
AppliesTo Extension
Component TwistyPlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:15714 TWikirev:15715 TWikirev:15716 TWikirev:15717 TWikirev:15730 TWikirev:15731 TWikirev:15732 TWikirev:15733 TWikirev:15738 TWikirev:15739 TWikirev:15740 TWikirev:15741 TWikirev:15742
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r28 < r27 < r26 < r25 < r24 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r28 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback