Hello,
I need to have SideBar hidden by default in my published tiddly. I
have been reading here on groups and I found a solution,but I have
problems implementing it.
Here is a copy of this solution, since I can't reply to it:
......................
Also, rather than using an obscurely placed link to trigger
[[SetWorkMode]] you could combine both cases into a single tiddler,
and use InlineJavascriptPlugin to conditionally show/hide the sidebar,
based on programmatic criteria, such as checking the current username,
like this:
[[SetMode]]
<script>
if (config.options.txtUserName="admin")
return '<<toggleSideBar ... show>>';
else
return '<<toggleSideBar ... hide>>';
</script>
[[PageTemplate]]
<span style="display:none" macro="tiddler SetMode"></span>
Then, to use "author mode", just set your username to "admin"... any
other username will default to "reader mode"...
........................................................
Here is also a link to the entire discussion:
http://groups.google.com/group/tiddlywiki/browse_thread/thread/4efa48e1cedc1707
I have the required plugins, at least I think I do:)
Any ideas?
Thx
regards
seba
--
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.