> I really like the ability to switch between themes which is useful in
> other tiddlywikis too. Could you make the switch theme macro into a
> bookmarklet too? It would be nice to have ability to switch between
> original tiddlywiki interface and a more meaningful end-user-
> interface, but without a switch theme button, only having the
> bookmarklet for the purpose of switching themes.

You can create your own theme-switching "instant bookmarklet" using
   http://www.TiddlyTools.com/#InlineJavascriptPlugin

After installing the plugin, enter the following 'onclick' script into
a tiddler:
----------------------------------
<script label="switch theme">
   var theme1="TiddlyWikiTheme"
   var theme2="TiddlyTweetsTheme";
   var currTheme=config.options.txtTheme;
   config.options.txtTheme=(currTheme==theme1?theme2:theme1);
   story.switchTheme(config.options.txtTheme);
</script>
----------------------------------
This will embed a 'switch theme' command directly in tiddler content,
ready for you to click on to toggle between the two specified themes.

In addition to creating a command link, InlineJavscriptPlugin also
takes the 'onclick' script and stores it in a 'bookmarklet-encoded'
format using the 'href' attribute of the link.  This allows you to
simply grab the link text and drag it directly onto your browser's
toolbar to create the "instant bookmarklet", ready to be clicked upon.

... and, once the bookmarklet has been copied into the browser's
toolbar, you can actually delete the tiddler with the embedded
'onclick' script (if you want to).  In fact, you don't even need to
keep InlineJavascriptPlugin installed in your document (though it's
very convenient to have around), because the bookmarklet script is
completely stand-alone and self-contained.


For other examples of bookmarklets that you can drag directly to your
toolbar, see
   http://www.TiddlyTools.com/#InstantBookmarklets

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to