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.
Item1729: Have more flexibility in Twisty's remember setting
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Extension |
TwistyPlugin |
|
This use case came up in
Item881:
- Multiple attachment tables can be on one page, so the attachment twisty cannot have a fixed
id
- The state of having the attachment twisty opened or closed should be set site-wide, not per topic
The current implementation is as follows:
- If for TWISTY the param
id is set, that id is used
- If no id is set, a generic id is created, based on web, topic and twisty order
- If for TWISTY the param
remember is set to on, the twisty state is stored in a cookie, with the preference name based on the id
We need a creative solution to let this all work together.
--
ArthurClemens - 15 Jun 2009
I am pondering to append a sequential number to the id. That would make the id unique. Possibly only works for
TWISTY, not for
TWISTYBUTTON and
TWISTYTOGGLE, because these may be located elsewhere on the page.
--
ArthurClemens - 01 Sep 2009
That did the trick. It works automatically for
TWISTY; for
TWISTYBUTTON and
TWISTYTOGGLE you still need to create your own unique id.
--
ArthurClemens - 02 Sep 2009