NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item2370: TwistyPlugin generates illegal id= values when used in subwebs
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Extension |
TwistyPlugin |
|
If the
TwistyPlugin is used in a subweb, it generates span tags with illegal ids.
For instance, if the subweb is called Main.Test, then the span ids for a twisty item in topic FooBar will be
<span id="twistyIdMain/TestFooBarlshow">
<span id="twistyIdMain/TestFoobarlhide">
Unfortunately, "/" is not a legal character in a id string.
This is fairly clearly fixable in _createId in TwistyPlugin.pm , possibly just by
$theWeb =~ s#/##o;
Is there likely to be any problem with the fact that the result could conceivably clash with another valid Web name?
The only time overlapping web/topic names would be a problem is with the
remember="on" setting, that stores the twisty state in a cookie.
But it can be prevented by changing the
/ separator to for example
subweb, for example
twistyIdMainsubwebTestFoobarlshow.
--
ArthurClemens - 17 Nov 2009