Wow! I've got such a headache! I've spent way too much time trying to
track this down, putting in little "alerts" to help follow the action
-- it doesn't seem possible to use firebug to track this sort of
scripting (possibly because so much is getting evaluated on the fly).
As near as I can figure, because the transclusion is fiddling with the
story, it ends up triggering itself twice (or more). On the second
time around, it calculates the current tiddler to be whatever tiddler
is last in the story. I can see this happening in the process, but
haven't been able to figure out why it happens.
The workaround I came up with, took only 2 minutes to crank out.
Instead of using transclusion, I used a macro. Create a tiddler tagged
with systemConfig and the following contents:
config.macros.FoldOtherTiddlers= {
handler: function (place, macroName, params, wikifier, paramString,
tiddler)
{
if (config.commands.collapseTiddler ) {
var here=story.findContainingTiddler(place);
config.commands.collapseOthers.handler(null,here,here.getAttribute
('tiddler'));
}
}
};
Watch out for google groups wrapping! Wrapped code breaks. Save and
reload.
Now instead of the transclusion, you can just put this macro in your
tiddler:
<<FoldOtherTiddlers>>
I'll be very interested in what the final solution to the transclusion
problem is.
/% Mark %/
On Dec 29, 1:53 am, David <[email protected]> wrote:
> I've had some challenges getting the FoldOtherTiddlers transclusion
> from TiddlyTools.com to work properly. I discovered it needed the
> CollapseTiddlersPlugin to be installed, so I started with an empty TW
> and installed the CollapseTiddlersPlugin according to the details in
> this
> thread:http://groups.google.com/group/tiddlywiki/browse_thread/thread/ec0cc6....
> This includes the necessary edits to the ToolbarCommands and the
> CollapsedTemplate.
>
> This is a link to my working version with the CollapseTiddlersPlugin
> installed:http://dl.dropbox.com/u/75198/TiddlyWikiTest/CollapseTest.html
>
> Then I installed the FoldOtherTiddlers transclusion, and created a
> tiddler containing the "<<tiddler FoldOtherTiddlers>>" macro.
>
> This is a link to the TW with the FoldOtherTiddlers
> installed:http://dl.dropbox.com/u/75198/TiddlyWikiTest/FoldTest.html
>
> Opening the Test Fold Others tiddler causes that tiddler to open in a
> folded state, and all other tiddlers but one to fold. The fold and
> unfold still works fine on the other tiddlers, but the Test Fold
> Others tiddler will not unfold.
>
> That's where I decided I needed professional help. :-)
>
> Thanks in advance for your assistance, and thanks for TiddlyWiki and
> its excellent community.
>
> David
--
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.