Tags:
create new tag
, view all tags

Question

All twistys on my TWiki-Site are broken since I installed version 1.1 of the plugin.

  • the twisty-link for show and the one for hide are both placed next to each other.
  • the content inside the twisty is not available

Screenshot:

twisty-links.png

All dependencies mentioned are installed.

Any ideas?

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: SpreadSheetPlugin, BreadCrumbsPlugin, CommentPlugin, EditTablePlugin, FilterPlugin, FlexWebListPlugin, GluePlugin, IfDefinedPlugin, InterwikiPlugin, NatSkinPlugin, PreferencesPlugin, RedDotPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, TagMePlugin, TwistyPlugin, WysiwygPlugin
Server OS: linux
Web server: apache 2.2.0
Perl version: 5.8.7
Client OS: MS Win XP
Web Browser: Mozilla
Categories: Plugins

-- CarloSchulz - 23 Oct 2006

Answer

Could you provide some code: the code you have used and the generated html?

-- ArthurClemens - 23 Oct 2006

The code is part of the NatSkinPlugin by MichaelDaum. I only changed the content of some < l i > tags (it's the same code that produced the screenshot above).

here's the code:

%STARTINCLUDE%
---+ [[%MAINWEB%.CarloSchulzSideBar][%MAKETEXT{"MySidebar"}%]]%REDDOT{"%MAINWEB%.CarloSchulzSideBar"}%
<ul>
  <li> %TWISTY{id="mylinks" link="%MAKETEXT{"Links"}%" remember="on" mode="div"}%
    <ul>
      <li> [[TWiki.WebHome][TWiki]] </li>
      <li> [[Sandbox.WebHome][Sandbox]] </li>
      <li> TWiki.AdminToolsCategory </li>
      <li> Main.TWikiUsers </li>
      <li> TWiki.TWikiDocGraphics </li>
    </ul> %ENDTWISTY% 
  </li>
  <li> %TWISTY{id="mydocu" link="%MAKETEXT{"Documentation"}%" remember="on" mode="div"}%
    <ul>
      <li> [[%TWIKIWEB%.TWikiReferenceManual][%MAKETEXT{"Reference Manual"}%]] </li>
      <li> [[%TWIKIWEB%.GoodStyle][%MAKETEXT{"Good Style"}%]] </li>
      <li> [[%TWIKIWEB%.TWikiFAQ][%MAKETEXT{"FAQs"}%]] </li>
      <li> [[%TWIKIWEB%.TWikiVariables][%MAKETEXT{"TWiki Variables"}%]] </li>
      <li> [[%TWIKIWEB%.TWikiForms][%MAKETEXT{"TWiki Forms"}%]] </li>
      <li> [[%TWIKIWEB%.FormattedSearch][%MAKETEXT{"Formatted Search"}%]] </li>
      <li> [[%TWIKIWEB%.FileAttachment][%MAKETEXT{"File Attachment"}%]] </li>
    </ul> %ENDTWISTY% 
  </li>
  <li> %TWISTY{id="myplugins" link="%MAKETEXT{"Plugins"}%" remember="on" mode="div"}%
    <ul>
      %FORMATLIST{"%ACTIVATEDPLUGINS%" separator="$n" format="<li> $1 </li>" sort="on"}%
    </ul> %ENDTWISTY% 
  </li>
</ul>
%TWISTYTOGGLE{id="mystyles" remember="on" mode="div"}% 
%INCLUDE{"TWiki.NatSkinStyleBrowser"}%
%ENDTWISTYTOGGLE% 
%STOPINCLUDE%

here' the html:

<div class="natSideBarPersonal">
<h1><a name="MySidebarMain_CarloSchulzSideBar"></a> <a href="/twiki/bin/view/Main/CarloSchulzSideBar" class="twikiLink">MySidebar</a><span class="redDot" ><a href="http://192.168.113.12/twiki/bin/edit/Main/CarloSchulzSideBar?t=1161766888&amp;redirect=Main.WebHome" title="Edit&nbsp;Main.CarloSchulzSideBar" >.</a></span> </h1>
<ul>
  <li> <div class="twistyPlugin" style="display:inline;"><span><span id="mylinksshow" class="twistyRememberSetting twistyTrigger twistyMakeVisible"><a href="#"><span class="twikiLinkLabel">Links</span></a></span><script type="text/javascript">TWiki.TwistyPlugin.init("mylinksshow");</script><span id="mylinkshide" class="twistyRememberSetting twistyTrigger twistyMakeVisible"><a href="#"><span class="twikiLinkLabel">Links</span></a></span><script type="text/javascript">TWiki.TwistyPlugin.init("mylinkshide");</script></span></div><!--//twistyPlugin--><div class="twistyPlugin" style="display:inline;"><div id="mylinkstoggle" class="twistyRememberSetting twistyContent twistyMakeHidden"><script type="text/javascript">TWiki.TwistyPlugin.init("mylinkstoggle");</script>
    <ul>
      <li> <a href="/twiki/bin/view/TWiki/WebHome" class="twikiLink">TWiki</a> </li>
      <li> <a href="/twiki/bin/view/Sandbox/WebHome" class="twikiLink">Sandbox</a> </li>
      <li> <a href="/twiki/bin/view/TWiki/AdminToolsCategory" class="twikiLink">AdminToolsCategory</a> </li>
      <li> <a href="/twiki/bin/view/SVUIntern/AK-Wissensmanagement" class="twikiLink">AK WM</a> </li>
      <li> <a href="http://192.168.113.12/twiki2/bin/configure" target="_top">Configure</a> </li>
      <li> <a href="/twiki/bin/view/Main/TWikiUsers" class="twikiLink">TWikiUsers</a> </li>
      <li> <a href="/twiki/bin/view/TWiki/TWikiDocGraphics" class="twikiLink">TWikiDocGraphics</a> </li>
    </ul> </div></div><!--//twistyPlugin--> 
  </li>
  <li> <div class="twistyPlugin" style="display:inline;"><span><span id="mydocushow" class="twistyRememberSetting twistyTrigger twistyMakeVisible"><a href="#"><span class="twikiLinkLabel">Documentation</span></a></span><script type="text/javascript">TWiki.TwistyPlugin.init("mydocushow");</script><span id="mydocuhide" class="twistyRememberSetting twistyTrigger twistyMakeVisible"><a href="#"><span class="twikiLinkLabel">Documentation</span></a></span><script type="text/javascript">TWiki.TwistyPlugin.init("mydocuhide");</script></span></div><!--//twistyPlugin--><div class="twistyPlugin" style="display:inline;"><div id="mydocutoggle" class="twistyRememberSetting twistyContent twistyMakeHidden"><script type="text/javascript">TWiki.TwistyPlugin.init("mydocutoggle");</script>
    <ul>
      <li> <a href="/twiki/bin/view/TWiki/TWikiReferenceManual" class="twikiLink">Reference Manual</a> </li>
      <li> <a href="/twiki/bin/view/TWiki/GoodStyle" class="twikiLink">Good Style</a> </li>
      <li> <a href="/twiki/bin/view/TWiki/TWikiFAQ" class="twikiLink">FAQs</a> </li>
      <li> <a href="/twiki/bin/view/TWiki/TWikiVariables" class="twikiLink">TWiki Variables</a> </li>
      <li> <a href="/twiki/bin/view/TWiki/TWikiForms" class="twikiLink">TWiki Forms</a> </li>
      <li> <a href="/twiki/bin/view/TWiki/FormattedSearch" class="twikiLink">Formatted Search</a> </li>
      <li> <a href="/twiki/bin/view/TWiki/FileAttachment" class="twikiLink">File Attachment</a> </li>
    </ul> </div></div><!--//twistyPlugin--> 
  </li>
  <li> <div class="twistyPlugin" style="display:inline;"><span><span id="mypluginsshow" class="twistyRememberSetting twistyTrigger twistyMakeVisible"><a href="#"><span class="twikiLinkLabel">Plugins</span></a></span><script type="text/javascript">TWiki.TwistyPlugin.init("mypluginsshow");</script><span id="mypluginshide" class="twistyRememberSetting twistyTrigger twistyMakeVisible"><a href="#"><span class="twikiLinkLabel">Plugins</span></a></span><script type="text/javascript">TWiki.TwistyPlugin.init("mypluginshide");</script></span></div><!--//twistyPlugin--><div class="twistyPlugin" style="display:inline;"><div id="mypluginstoggle" class="twistyRememberSetting twistyContent twistyMakeHidden"><script type="text/javascript">TWiki.TwistyPlugin.init("mypluginstoggle");</script>
    <ul>
      <li> <a href="/twiki/bin/view/TWiki/BreadCrumbsPlugin" class="twikiLink">BreadCrumbsPlugin</a> </li>
<li> <a href="/twiki/bin/view/TWiki/CommentPlugin" class="twikiLink">CommentPlugin</a> </li>
<li> <a href="/twiki/bin/view/TWiki/EditTablePlugin" class="twikiLink">EditTablePlugin</a> </li>
<li> ...the list goes on...</li>
    </ul> </div></div><!--//twistyPlugin--> 
  </li>
</ul>

thanks for the support!

-- CarloSchulz - 24 Oct 2006

The generated html looks ok. Could you check if you have the right includes in the html header? You should see something like this:

<!--TWISTYPLUGIN_TWISTY--><style type="text/css" media="all">
@import url("http://mysite/twiki/pub/TWiki/TwistyContrib/twist.css");
</style>
<script type="text/javascript" src="http://mysite/twiki/pub/TWiki/TWikiJavascripts/twiki.js"></script>
<script type="text/javascript" src="http://mysite/twiki/pub/TWiki/BehaviourContrib/behaviour.js"></script>
<script type="text/javascript" src="http://mysite/twiki/pub/TWiki/TwistyContrib/twist.js"></script>

-- ArthurClemens - 24 Oct 2006

hmm, looks exactly the same...

</style>
<!--TWISTYPLUGIN_TWISTY--><style type="text/css" media="all">
@import url("http://mysite/twiki2/pub/TWiki/TwistyContrib/twist.css");
</style>
<script type="text/javascript" src="http://mysite/twiki2/pub/TWiki/TWikiJavascripts/twiki.js"></script>
<script type="text/javascript" src="http://mysite/twiki2/pub/TWiki/BehaviourContrib/behaviour.js"></script>
<script type="text/javascript" src="http://mysite/twiki2/pub/TWiki/TwistyContrib/twist.js"></script>
</head>

-- CarloSchulz - 24 Oct 2006

Are the examples working in the TwistyPlugin topic (on your site)?

-- ArthurClemens - 24 Oct 2006

no, not sice the upgrade to version 1.1.

when i click any example on my TwistyPlugin topic the cursor jumps to the top of the page. And no twisty content is available just the twisty-links.

But it worked fine with the examples of Version 1

-- CarloSchulz - 24 Oct 2006

My guess is you need to install the latest version of TwistyContrib as well.

-- ArthurClemens - 24 Oct 2006

thx a lot. Your guess was right. smile

-- CarloSchulz - 24 Oct 2006

If you want to upgrade TwistyPlugin - or have upgraded already - please see UpgradingTwisty for an easy bundle upgrade package.

-- ArthurClemens - 19 Nov 2007

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng twisty-links.png r1 manage 1.1 K 2006-10-23 - 15:54 CarloSchulz  
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2007-11-19 - ArthurClemens
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.