How to display only AnonDefaultTiddlers

8 views
Skip to first unread message

whatever

unread,
Nov 5, 2010, 3:11:18 PM11/5/10
to ccTiddly
Hi!
How does ccTiddly know when you're logged in? Does it store a value in
a cookie? The reason is that I want to hide the main menu and the
sidebar when no user is logged in. The content of my main menu and
sidebar depends on the user's role (I'm using Tobi Beer's
SimpleRolesPlugin (1)), and when I log out, the content display
depends on the role of the last user. Therefore it is preferable that
main menu and sidebar are hidden when no one is logged in.

(1) http://tobibeer.tiddlyspace.com/#SimpleRolesPlugin

w

Kashgarinn

unread,
Nov 8, 2010, 7:14:47 AM11/8/10
to ccTiddly
I don't have the answers, but...

"How does ccTiddly know when you're logged in?"
- there's a loggedIn variable under window, haven't verified it, might
that help?

There was also a variable with the username I think.. might be mixing
it with the cookie though. I'd use firebug to go through the DOM and
see what you find.

I've never used your plugins so can't tell you anymore.

S.
Reply all
Reply to author
Forward
0 new messages