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