> want to hide options menu of the sidebar during the view mode. There are several ways to do this. One of them is to use http://www.TiddlyTools.com/#InlineJavascriptPlugin
With this plugin installed, you can then embed <script>...</script> code in your tiddlers to dynamically generate and return tiddler content based on programmatically-determined conditions. For example, if you replace the standard 'options' <<slider>> macro in [[SideBarOptions]] with this one-line script: <script> if (!readOnly) return "<<slider chkSliderOptionsPanel OptionsPanel [[options »]] [[Change TiddlyWiki advanced options]]>>"; </script> then the <<slider>> macro will only be output when the TW global flag, 'readOnly', is false. QED. Note: for this particular use-case, rather than checking the 'readOnly' flag, I prefer to check for a specific user name... if it the right name, then I show the extra content, like this: <script> if (config.options.txtUserName=="MyName") return "<<slider chkSliderOptionsPanel OptionsPanel [[options »]] [[Change TiddlyWiki advanced options]]>>"; </script> enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

