How to define the sequence to load the tiddlers

6 views
Skip to first unread message

Peter B

unread,
Aug 25, 2006, 5:01:48 AM8/25/06
to TiddlyWiki
Hi to all,

I tried to combine BramChens PTW with TagglyTagging of MonkeyPirateTW.

Unfortunatelly there are some small problems which came up by combining
these cool enhancements:

I guess the DefaultTiddler and the MainMenu will be loaded before the
LoadingExtPlugins of Bram. Because of this, there are some error
messages within the tiddler area of tiddlers which are loaded before
the ExtPlugins. These errors hide away by closing and opening the
tiddlers which are loaded by default. So this is a workaround, but I
don't like it.

My question is: Does anyone have an idea, how I may force that
LoadingExtPlugins will be done before DefaultTiddlers and MainMenu will
be loaded?

Thanks in advance for all hints.

Kind regards
Peter

Udo Borkowski

unread,
Aug 25, 2006, 5:09:37 AM8/25/06
to Tiddl...@googlegroups.com
Try renaming the LoadingExtPlugins tiddler to "AAA..." or so (Plugins
are loaded in alphabetical order)

Udo

Peter B

unread,
Aug 25, 2006, 5:53:56 AM8/25/06
to TiddlyWiki
Hi Udo,

thanks for your tip. I tried doing so, but it didn't work. Is it a
difference whether a plugin is saved in a tiddler or loaded from an
external file? Because having the Plugins for TagglyTagging in tiddlers
there are no error messages.

Cheers
Peter

Udo Borkowski

unread,
Aug 25, 2006, 7:09:45 AM8/25/06
to Tiddl...@googlegroups.com
I don't know the plugins for TagglyTagging but maybe they don't work
together with the LoadExt plugin.

Can you give the exact error message you see? Also, what TW version are
you using?

Udo

Peter B

unread,
Aug 25, 2006, 8:00:02 AM8/25/06
to TiddlyWiki
Hi Udo,

I use version ptw 2.1.0 beta 4

The error message is "Error in macro ... No such macro".

As I mentioned above, when I close and open the tiddlers with these
messages, the errors are gone. Also, when I edit a tiddler and klick
"done" the error messages disappear. So they seem to work but there is
a problem right in the beginning.

Regards
Peter

BramChen

unread,
Aug 25, 2006, 9:42:32 AM8/25/06
to TiddlyWiki

Hi Peter,

My thought on the matter, *loading plugins from the external files*,
you could load plugins, for the most part, *using* MarkupPostHead or
MarkupPreBody. For a few of plugins which could not be loaded *using*
Markup*, try to load such plugins using LoadExtPlugin.

For the TagglyTaggings, you could put these texts into the shadowed
tiddler MarkupPostHead or MarkupPreBody as below,

<script type="text/javascript" src="NewHereCommand.js"></script>
<script type="text/javascript" src="QuickOpenTagPlugin.js"></script>
<script type="text/javascript" src="RenameTagsPlugin.js"></script>
<script type="text/javascript" src="TagUtils.js"></script>
<script type="text/javascript" src="TagglyListPlugin.js"></script>

I had tested them on TW 2.1.0 beta 6/ Firefox 1.5.0.6 and they worked
well.

Bram

Peter B

unread,
Aug 25, 2006, 10:12:16 AM8/25/06
to TiddlyWiki
Hi Bram,

it works. Thanks a lot!

Peter

Reply all
Reply to author
Forward
0 new messages