Hi!
I modified the script somewhat:
<script>
story.closeAllTiddlers();
if(store.tiddlerExists(config.options.txtUserName+'\'s Dashboard'))
{story.displayTiddler(null,config.options.txtUserName+'\'s
Dashboard');}
else
{story.displayTiddler(null,'404');}
window.showBackstage = window.simpleRoles.contains('Admin');
</script>
It works as it's supposed to. It is located in the DefaultDashboard
tiddler and used to be invoked at the very end of PageTemplate with
<div refresh='content' tiddler='DefaultDashboard'></div>
The only problem was that when I logged out, the tiddler shown was the
last user's dashboard instead of the tiddler in the DefaultTiddlers or
the AnonDefaultTiddlers. I fixed that problem by moving the script
from the PageTemplate to the DefaultTiddlers. It works perfectly
now. :D
w
w