Hi,
@Jed; Is there a "How to" somewhere as to how you integrated that to TW5?
@Josiah: Yeah I wanted something diff, little more integrated kind.

@Seba.
Here is a simpler method.

Create a stylesheet, and post the CSS code below.

<$reveal type="nomatch" state="$:/Key"  text="open sesame">
button[aria-label="edit"] {display:none}
</$reveal>




This will hide the edit button using CSS (which is essentially what almost 
all other methods are doing here.) To unhide it, you simply create a new 
tiddler, title it "$:/Key" and add the text as "open sesame"



Of course you can extend this to hide anything with appropriate CSS rules 
and unhide it upon creating the key.

for eg; you want to hide the entire control buttons and the sidebar

<$reveal type="nomatch" state="$:/Key"  text="open sesame">
.tc-tiddler-controls, .tc-sidebar-scrollable, .tc-topbar-right 
{display:none}
.tc-story-river {padding-right: 3em; margin-right: 0;}
</$reveal>



Note: In this condition you can deprived of the ability to create new 
tiddlers, which means you have to create "$:/Key" tiddler in a separate 
wiki and drag and drop it to your Wiki.


For an extra layer of fun, do it like this. Tag the stylesheet tiddler as 
"Lock" in addition to "$:/tags/Stylesheet". Now the CSS rules should be 
specified as

<$reveal type="nomatch" state="$:/Key"  text="open sesame">
button[aria-label="edit"] {display:none}
.tc-tagged-Lock {display:none;}
</$reveal>




This will obscure the Lock tiddler, as in -it will not appear on the 
story-river unless there is $:/Key tiddler. Which means unless the viewer 
is versatile with TW5 and CSS, it will be little harder to undo something 
you cannot see. 

PS: You can obviously use a more complex password than "open sesame."

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eb0c946b-311f-4b2e-b2c0-bd88964194ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to