Question
I've just migrated a TWiki 4.0.5 site to version 4.1.2. In doing so, I installed the most recent versions of all installed plugins and contribs, including
TwistyPlugin and
TwistyContrib. But now all the "twisties" that used to display show/hide links for attachments are missing. The attachments still appear in a table, but without the twisty function. The plugin appears to be installed properly.
What would cause that, and what can I try to verify that other similar functions are working?
Environment
--
JohnDeStefano - 09 Nov 2007
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
See
ShowAttachmentsOnOff why the attachment twisty is missing. See
TwistyBehaviourProblem what may cause the plugin to not work after an upgrade.
--
ArthurClemens - 09 Nov 2007
Thanks Arthur. I'm not using the
QuickMenuSkin, just Pattern. I saw in the Dev thread that you were looking to notify someone of changes made to Pattern in order to address this.
Do you have any advice on code to replicate in 4.1.2 the twisty attachment control that used to work in 4.0.x?
--
JohnDeStefano - 13 Nov 2007
Replace your version of
templates/attachtemplates.pattern.tmpl with the one attached here.
--
ArthurClemens - 13 Nov 2007
I replaced the template, also tried replacing the template after updating Pattern to the "patched" Jan 2007 version. The attachment table appears as expected, but clicking the Attachments twisty doesn't collapse the table (just returns the browser to the top of the page).
--
JohnDeStefano - 14 Nov 2007
Did you follow the steps mentioned on
TwistyBehaviourProblem?
--
ArthurClemens - 14 Nov 2007
Yes, I believe so: I had already installed the latest versions of
TwistyContrib and
PublishContrib, and I then installed the latest Pattern. I don't have the same problem as shown in
ProblemsWithTwistyPlugin1Dot1 (advice there was to upgrade
TwistyContrib).
--
JohnDeStefano - 14 Nov 2007
You might need the newer javascript files (hard to say - do you see any javascript errors?). See attached on
TwistyPluginDev.
--
ArthurClemens - 14 Nov 2007
I hadn't noticed any errors before now, but I did see a JS error when I tried clicking the twisty this time:
Behaviour is not defined
https://www.usatlas.bnl.gov/twiki/pub/TWiki/TwistyContrib/twist.compressed.js
Line 1
At any rate, following your link above to the patch, and installing the updated
TwistyPlugin.pm file in
/var/www/twiki/lib/TWiki/Plugins over the existing plug-in file seems to have fixed the problem. It's working just fine now. Thank you!
--
JohnDeStefano - 15 Nov 2007
If you want to upgrade
TwistyPlugin - or have upgraded already - please see
UpgradingTwisty for an easy bundle upgrade package.
--
ArthurClemens - 19 Nov 2007