If you load TaggedTemplateTweak from tiddlytools.com, then after
saving and reloading you should be able to copy the contents of your
ViewTemplate tiddler into a tiddler readonlyViewTemplate .
In this new template, change the toolbar line, by taking the
ToolbarCommands section and replacing it with the actual contents of
TollCommands::ViewToolbar. So you might be changing this:
<div class='toolbar' macro='toolbar
[[ToolbarCommands::ViewToolbar]]'></div>
to this:
<div class='toolbar' macro='toolbar closeTiddler closeOthers
+editTiddler > fields syncing permalink references jump'></div>
What you see may depend on your TW model and version. Now delete the
+editTiddler macro command, so that that line looks like:
<div class='toolbar' macro='toolbar closeTiddler closeOthers > fields
syncing permalink references jump'></div>
By the way, if Google Groups wraps these lines, fix them.
Ok, now any tiddler that you tag with 'readonly', will not offer the
'edit' option.
If you ever have to go back and re-edit readonly tiddler, you can
temporarily rename readonlyViewTemplate to something else, edit the
tiddler, and then rename again.
HTH
Mark
Stephan
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
These plugins:
http://www.TiddlyTools.com/#TiddlerPasswordPlugin
http://www.TiddlyTools.com/#TaggedTemplateTweak
will let you define a custom [[LockedEditTemplate]] that includes
<span macro="getTiddlerPassword"></span>
to automatically prompt for a password when attempting to edit a
tiddler tagged with "locked". If the correct password is not entered,
the tiddler is closed to prevent editing.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
First I started with a version of TW that has a top menu and the
search in the header.
Then I installed the HideWhenPlugin (http://mptw.tiddlyspot.com/
#HideWhenPlugin)
and put this into my ViewTemplate:
<div class='toolbar' macro="showWhen config.options.txtUserName ==
'KenGirard' ">
<span macro='toolbar editTiddler closeOthers closeTiddler'></
span>
</div>
<div class='toolbar' macro="showWhen config.options.txtUserName !==
'KenGirard' ">
<span macro='toolbar closeTiddler'></span>
</div>
Now if the signin name is KenGirard, I can edit, otherwise all I get
is a way to close the tiddler. Less confusion for folks.
Having gone even further in my efforts to keep accidents from
happening, I hid my sidebar like so in the PageTemplate:
<!---
<div id='sidebar'>
<div id='sidebarOptions' refresh='content'
tiddler='SideBarOptions'></div>
<div id='sidebarTabs' refresh='content' force='true'
tiddler='SideBarTabsSlider'></div>
</div>
--->
And then added the following to my systemTweak tiddler (tagged
systemConfig)
config.tasks.extraTab = {
text: "Extras",
tooltip: "Additional stuff I wanted to hide",
content: "<<tiddler contentFooter>>"
};
config.backstageTasks.push("extraTab");
The contentFooter tiddler contains:
Name:<<option txtUserName>> :: <<newTiddler>> :: <<newTiddler
label:"Add program" title:"New Program" tag:"Program" text:"Type the
description in this section">> :: SaveBackups <<option
chkSaveBackups>> :: AutoSave <<option chkAutoSave>> :: [[Tabs|
SideBarTabs]] :: [[Options|SideBarOptions]]
and can be easily accessed from the Backstage button.
I've thought that if I need to make it even less likely that anyone
might edit things, I could remove the Name:<<option txtUserName>>
section, as I can open any other TW and sign in to set the cookie for
this one.
Ken Girard
> > TiddlyTools / ELS Design Studios- Hide quoted text -
>
> - Show quoted text -