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
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
Can you give the exact error message you see? Also, what TW version are
you using?
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
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
it works. Thanks a lot!
Peter