Hi!
In my wiki, the default tiddler displayed is the user's own dashboard.
So, if the user's name is Jake, then the tiddler Jake's Dashboard is
displayed. If the user is Mary, then Mary's Dashboard is displayed. To
achieve this, I put in DefaultTiddlers only the tiddler
DefaultDashboard, which contains the following code:
<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>

When I tag it with systemConfig, it works fine in Firefox, but when I
test it on other browsers, I get the following errors:
IE8: Error: Syntax error
Chrome 6: Error: SyntaxError: Unexpected token <
Opera 10.63: Error: SyntaxError: at index 0: expected expression, got
'<'

>From the error messages I'm guessing it has to do with the script
tags, however, if I remove them, then the script isn't activated.

So I removed the systemConfig tag and a whole lot of different issues
appeared.
IE8 ignores the SimpleRolesPlugin (1) and everyone is not an Admin
anymore; also, I'm using the TiddlersBarPlugin (2), but only the
dashboard tab is shown and I have to click it to display the contents
Chrome 6 has the same issues as IE8
Opera 10.63 doesn't have the problem with SimpleRolesPlugin, but also
only displays the tab, which I have to click to display the content.

Any ideas?
w

(1) http://tobibeer.tiddlyspace.com/#SimpleRolesPlugin
(2) http://visualtw.ouvaton.org/VisualTW.html#TiddlersBarPlugin

-- 
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.

Reply via email to