Thanks for the explanation (and sorry for suggesting in the original
subject line that I had multiple questions - I really only had the
one!).  Obviously, part of my problem was that I thought I *was*
testing a minimal case before I sent my question: I tested what
happened when I removed the ##show inside the ToggleSliders tiddler
itself.  But as you point out, that doesn't work!

After further investigation, I think my troubles are due to the fact
that I was using ExpandSliders in transclusion. I can work around
this, but if you do want to see examples of the way I had been using
ExpandSliders, you can see them at:
http://cmtest.tiddlyspot.com

As an aside, I'd like to note that it took me some time to create a
"minimal" test case (my file is old and has many moving parts).  To
me, this underscores the most serious shortcoming of TW: it's really
hard to share it with someone else, or even just to explain how to
reproduce a certain result. Exporting a set of tiddlers seems like the
best way to do things - but that still requires identifying all the
plugins, scripts, CSS, etc. that are being called upon when any given
tiddler is viewed.
cmari

On Oct 3, 10:47 am, Eric Shulman <[email protected]> wrote:
> > I had been using an ExpandSliders script that I recently noticed is no
> > longer in tiddlytools.  It looked as though ToggleSliders is what I
> > should be using instead, so I made the switch,
>
> ExpandSlidersScript was re-written and renamed ToggleSliders, since
> it:
> A) actually toggles (expands or *collapses*) multiple sliders with a
> single click
> B) has been converted from an 'inline script' into a 'transclusion',
> written using only 'pure TW' syntax, so there's no dependencies.
>
> > In the "Usage" and "Example" that appears (between triple brackets) in
> > the tiddler ToggleSliders, the macro is:
> > <<tiddler ToggleSliders with: here "open all" "close all">>
> > However, in the working example (not between triple brackets), the
> > macro adds ##show:
> > <<tiddler ToggleSliders##show with: here "open all" "close all">>
>
> When you view a transclusion tiddler directly (as opposed to *using*
> it by embedding it in another tiddler via <<tiddler TiddlerName
> with: ... >>) it will display its ##info section (the documentation),
> rather than the ##show section, so that the tiddler is 'self-
> documenting'.
>
> The *visible* syntax, without "##show", is the correct syntax to use.
> The additional "##show" section reference is needed in this case only
> because it is embedded within the ToggleSliders tiddler itself.  It
> ensures that the example embedded direclty in the transclusion's
> ##info section will invoke the functionality rather than attempting to
> recursively transclude the documentation into *itself*.
>
> > I can only get the macro to work when I include the ##show.  Are there
> > cases where one would be able to use it without ##show?
>
> The tiddler works for me (in other tiddlers) without the ##show.  For
> example:
>    http://www.TiddlyTools.com/#QuickStart
> has a 'show all'/'hide all' command link (look near the upper right of
> the rendered tiddler content) that toggles all the sliders in
> QuickStart at one time, using this syntax:
>    <<tiddler ToggleSliders with: 'here' 'show all' 'hide all'>>
>
> The conversion from inline script to transclusion should not have
> changed the way you use this tiddler (except for the name, of
> course).  Can you create a *minimal test case* and then post the
> document somewhere so I can debug it?
>
> -e
--~--~---------~--~----~------------~-------~--~----~
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