Item13896: TWISTY incorrectly used in Sandbox.WebHome, generates broken HTML.
Priority: Urgent
Current State: Closed
Released In: 2.1.0
Target Release: minor
Marked urgent, as our default
Sandbox is generating broken HTML. But not sure if this should be a bug in
TwistyPlugin &
Sandbox, or a bug in
Sandbox / Feature request in
TwistyPlugin.
%TWISTY{
link="%BUTTON{"%MAKETEXT{"Create New Topic"}%" icon="add"}%%CLEAR%"
mode="div"
}%
...
%ENDTWISTY{}%
generates nested <a> tags and spans.
Not sure what the best way to fix this is. TWISTY expects individual components for generating the link:
-
link
- Link label for both show and hide links
-
showimgleft
- Specify the url of an image that will be displayed with the show link at the left side of the link.
So inserting complex html where a label is expected is not valid use for the macro.
--
GeorgeClark - 14 Dec 2015
Twisty provides a way to use styled buttons.
%TWISTY{
showlink="%MAKETEXT{"Create New Topic"}%"
showimgleft="%ICONURLPATH{"add"}%"
hidelink="%MAKETEXT{"hide form"}%"
hideimgleft="%ICONURLPATH{"toggleclose"}%"
linkclass="foswikiButton"
mode="div"
}%
--
GeorgeClark - 19 Dec 2015