Why not a simple plugin to hijack the restart() function:
---------------
restart_pluginControls = restart;
restart = function() {
restart_pluginControls.apply(this, arguments);
if(store.getTaggedTiddlers("systemConfigDisable").length > 0)
story.displayTiddler(null, "WarningTiddler");
};
---------------
This is untested, but it should work - unless I'm missing the point
here, of course...
-- F.
Restart is invoked once when the document is loaded, so this works just
like DefaultTiddlers. The script hidden in the PageTemplate is invoked
whenever the PageTemplate is refreshed, which occurs more frequently.
-- F.
;D
--
Daniel Baird
They say a million monkeys typing will eventually produce Shakespeare.
Thanks to commenters on YouTube, we now know this is not true.
I agree, and I like Eric's script.
My only concern is that it *might* cause an initial flicker, i.e. the
user might witness the WarningTiddler being rendered and closed.
-- F.
Just for future reference, the code will probably look something like this:
---------------
var tiddler = store.getTiddler("DefaultTiddlers");
if(tiddler)
tiddler.text = "WarningTiddler " + t.text;
else
config.shadowTiddlers["DefaultTiddlers"] = "WarningTiddler "
+ config.shadowTiddlers["DefaultTiddlers"];
---------------
HTH.
-- F.