[tw] Re: How can I make my [twc] page read only?
On Saturday, December 14, 2013 12:12:57 AM UTC+1, Anton Aylward wrote: Suppose I want to write a resume in TW and send the file to the recruiter. Yes, lame, I know, most recrutiers only deal in Word, and the idea of a wiki is beyond them. Heck most seem to chocke if you send them a PDF! But suppose. I need to compose on my machine but have it read only on theirs. I'm sure a single-tiddler with confuse them, no 'back' button! So some of the tiller specific menu functions such as 'close' must be there. But the version on my machine must stay editbale. Will this technique work for that situation? Yes, ... and imo you have to make the UI really bulletproof. eg: - If they close all tiddlers, the default landing page should be active again ... - Good menu structure that makes it easy, to see, if you missed something ... - ... have fun! mario -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: How can I make my [twc] page read only?
PMario said the following on 12/14/2013 08:51 AM: On Saturday, December 14, 2013 12:12:57 AM UTC+1, Anton Aylward wrote: Suppose I want to write a resume in TW and send the file to the recruiter. Yes, lame, I know, most recrutiers only deal in Word, and the idea of a wiki is beyond them. Heck most seem to chocke if you send them a PDF! But suppose. I need to compose on my machine but have it read only on theirs. I'm sure a single-tiddler with confuse them, no 'back' button! So some of the tiller specific menu functions such as 'close' must be there. But the version on my machine must stay editbale. Will this technique work for that situation? Yes, ... and imo you have to make the UI really bulletproof. eg: - If they close all tiddlers, the default landing page should be active again ... - Good menu structure that makes it easy, to see, if you missed something ... ... keep them coming. I'm baffled right now but I'm sure people will suggest ideas. Perhaps we can make a template/theme and make TiddlyWiki the new resume format :-) -- Eschew Obfuscation! -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: How can I make my [twc] page read only?
uups, sry for the typo :) that's the problem, when you write code, without creating a working test case. On Friday, December 13, 2013 2:47:00 AM UTC+1, Zane B Stein wrote: On another subject: Are there any templates out there that I can offer to the other not-computer-literate staff members to make it easy for them to edit their own Wikki's? In other words, we create the basic page for each staff member; some parts will not be editable by them, other parts they can edit? Tobias Beer did create a SimpleRoles plugin [1], that lets you assign roles to users. The roles are used to modify the ViewTemplate layout. It lets you show/hide elements depending on the users role. With a config tiddler you can add and remove users, without the need to modify the ..Templates again. ... It also means, that you'll need to dig deeper into TW layout tweaking. Eric did a plugin: TaggedTemplateTweak [2] that lets you switch the View- and EditTemplate depending on a tag. So it would be possible to combine those 2 plugins and design, what you need. There should be some planning, what you really want/need. IMO if more than 2 roles are involved, I think a file based approach gets complicated very fast. So let me ask some questions in advance. How many users are stuff ? eg - admin ... can do everything - editor ... can add/edit/ base content - guest ... can read only How many roles in tobias's sense [1] will be involved ? - above are 3 (suggestions) ... what do you think? How do you want to add updates to existing TWs, that have been modified by users allready. (This can be a project killer, if done wrong) Who can do the support, if something is messed up? Could your content be put into the cloud? eg: TiddlySpace.com With TiddlySpace I think it would be relatively easy to create the above roles. ... have fun! mario [1] http://tobibeer.tiddlyspace.com/#SimpleRoles [2] http://tiddlytools.com/#TaggedTemplateTweak -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: How can I make my [twc] page read only?
A variation on this ... Suppose I want to write a resume in TW and send the file to the recruiter. Yes, lame, I know, most recrutiers only deal in Word, and the idea of a wiki is beyond them. Heck most seem to chocke if you send them a PDF! But suppose. I need to compose on my machine but have it read only on theirs. I'm sure a single-tiddler with confuse them, no 'back' button! So some of the tiller specific menu functions such as 'close' must be there. But the version on my machine must stay editbale. Will this technique work for that situation? On Monday, December 9, 2013 5:24:28 AM UTC-5, PMario wrote: Hi Zane, The answer to your questions is yes. You can do all these things. . -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: How can I make my [twc] page read only?
Hi, Mario, It does seem to be working. Here is what I did: 1. Under Options on the right I put Zane as the username 2. I created a tiddler called zzConfig and put the following into it: if (config.txtUserName === Zane) { readOnly = false; config.options.chkShowRightSidebar = true; } else if (config.txtUserName === secondName) { readOnly = false; config.options.chkShowRightSidebar = true; } else if (config.txtUserName === thirdName) { readOnly = false; config.options.chkShowRightSidebar = true; } else { readOnly = true; config.options.chkShowRightSidebar = false; } 3. I tagged the file systemConfig 4. I clicked save changes I refreshed the page. And the Edit function has disappeared! Thank you! Now to learn more to fancy it up! On another subject: Are there any templates out there that I can offer to the other not-computer-literate staff members to make it easy for them to edit their own Wikki's? In other words, we create the basic page for each staff member; some parts will not be editable by them, other parts they can edit? Zane On Wednesday, December 11, 2013 2:19:44 AM UTC+8, PMario wrote: On Tuesday, December 10, 2013 6:26:02 AM UTC+1, Zane B Stein wrote: Thank you! Zane B Stein You are welcome! Please report back, if it workes as expected. ... or what you did, that worked. Just for reference :) -mario -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: How can I make my [twc] page read only?
There's a typo in the code Mario provided: In all places, config.txtUserName ... should be config.options.txtUserName As written, the conditionals will always fall through to the set readOnly and hide sidebar code, since the value of config.txtUserName is *undefined* and thus will never match any of the quoted strings you are comparing. Also... here's some much shorter code that will also do the same thing as you intend (i.e., match one of several names to enable editing): -- var names=[Zane,SecondName,ThirdName]; var admin=names.contains(config.options.txtUserName); readOnly = !admin; config.options.chkShowRightSidebar = admin; -- enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios EVERY DONATION IS IMPORTANT! HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR... http://TiddlyTools.github.com/fundraising.html#MakeADonation Professional TiddlyWiki Consulting Services... Analysis, Design, and Custom Solutions: http://www.TiddlyTools.com/#Contact -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: How can I make my [twc] page read only?
On Fri, Dec 13, 2013 at 1:26 PM, Eric Shulman elsdes...@gmail.com wrote: There's a typo in the code Mario provided: In all places, config.txtUserName ... should be config.options.txtUserName As written, the conditionals will always fall through to the set readOnly and hide sidebar code, since the value of config.txtUserName is *undefined* and thus will never match any of the quoted strings you are comparing. Also... here's some much shorter code that will also do the same thing as you intend (i.e., match one of several names to enable editing): -- var names=[Zane,SecondName,ThirdName]; var admin=names.contains(config.options.txtUserName); readOnly = !admin; config.options.chkShowRightSidebar = admin; -- Thank you. It is a bit of a learning curve for me, but I really appreciate this. Zane -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: How can I make my [twc] page read only?
On Tuesday, December 10, 2013 6:26:02 AM UTC+1, Zane B Stein wrote: Thank you! Zane B Stein You are welcome! Please report back, if it workes as expected. ... or what you did, that worked. Just for reference :) -mario -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: How can I make my [twc] page read only?
Hi Zane, The answer to your questions is yes. You can do all these things. IMO the reason, why nobody replied yet, is ... it depends on the theme you use. And a little bit on your abilities to use a browsers developer tools, because it may be possible to lock the TW, if something doesn't work well. TW is easy to unlock again, but you'll need the browser dev tools. Assuming you use an up to date vanilla TW from tiddlywiki.com Toggle right sidebar - http://www.tiddlytools.com/#ToggleRightSidebar - create a tiddler eg: zzConfig and tag it systemConfig - read the ToggleRightSidebar docs and play with it, to see, how it works. The settings take effect only, if the button is visible on the page. eg: add tiddler ToggleRightSidebar to the SiteSubtitle tiddler IMPORTANT: Create a backup first !!! TW uses javascript. .. There is a global variable called readOnly The tiddler zzConfig is tagged systemConfig ... This means it will be executed at TW startup. So it can be used to set global variables. If you add the following content to the zzConfig tiddler, you'll get a readOnly version. if (config.txtUserName === Zane) { reanOnly = false; config.options.chkShowRightSidebar = true; } else if (config.txtUserName === secondName) { reanOnly = false; config.options.chkShowRightSidebar = true; } else if (config.txtUserName === thirdName) { reanOnly = false; config.options.chkShowRightSidebar = true; } else { readOnly = true; config.options.chkShowRightSidebar = false; } The user name can be set in the right sidebar. So you may need a somewhat hidden button to activate it again. Edit the user name and do a page reload. Usefull resources: http://tiddlywiki.org ... default docs http://customize.tiddlyspace.com ... a lot of tweaking info If there are any questions. - just ask! hope this helps mario -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: How can I make my [twc] page read only?
Thank you! Zane B Stein On 9 Dec 2013, at 18:24, PMario pmari...@gmail.com wrote: Hi Zane, The answer to your questions is yes. You can do all these things. IMO the reason, why nobody replied yet, is ... it depends on the theme you use. And a little bit on your abilities to use a browsers developer tools, because it may be possible to lock the TW, if something doesn't work well. TW is easy to unlock again, but you'll need the browser dev tools. Assuming you use an up to date vanilla TW from tiddlywiki.com Toggle right sidebar - http://www.tiddlytools.com/#ToggleRightSidebar - create a tiddler eg: zzConfig and tag it systemConfig - read the ToggleRightSidebar docs and play with it, to see, how it works. The settings take effect only, if the button is visible on the page. eg: add tiddler ToggleRightSidebar to the SiteSubtitle tiddler IMPORTANT: Create a backup first !!! TW uses javascript. .. There is a global variable called readOnly The tiddler zzConfig is tagged systemConfig ... This means it will be executed at TW startup. So it can be used to set global variables. If you add the following content to the zzConfig tiddler, you'll get a readOnly version. if (config.txtUserName === Zane) { reanOnly = false; config.options.chkShowRightSidebar = true; } else if (config.txtUserName === secondName) { reanOnly = false; config.options.chkShowRightSidebar = true; } else if (config.txtUserName === thirdName) { reanOnly = false; config.options.chkShowRightSidebar = true; } else { readOnly = true; config.options.chkShowRightSidebar = false; } The user name can be set in the right sidebar. So you may need a somewhat hidden button to activate it again. Edit the user name and do a page reload. Usefull resources: http://tiddlywiki.org ... default docs http://customize.tiddlyspace.com ... a lot of tweaking info If there are any questions. - just ask! hope this helps mario -- You received this message because you are subscribed to a topic in the Google Groups TiddlyWiki group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/7n4i9gmOr3o/unsubscribe. To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: How can I make my [twc] page read only?
No responses yet. Can someone please tell me at least where I can go to look for the answers to these questions? On Friday, December 6, 2013 11:14:26 AM UTC+8, Zane B Stein wrote: Hi, I just created my first TiddlyWiki page, and want to put it up on the local server so fellow employees where I work can access it. Please forgive my ignorance but I have a few questions which I hope someone can assist me with: 1. Can I set the page that only myself, and two others, can edit the page, but anyone else who accesses the page will only be able to read the pages and click on the links but not add/subtract/modify anything? If so, how do I set the permissions? 2. Can i set the page so that only myself and the other editors can see the sidebar with options to Save changes, see the timeline and tags, but the sidebar will only have the option to Search and perhaps Close all for all other viewers? If so, how do I do this as well? Thank you. Zane -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.