How can I ensure a tiddler is not overwritten?
I guess the second best would be to make it a shadow tid ...
Yes, I know, but thanks. That's why I mentioned "generated" tiddlers, where I will not notice when a tid is overwritten.
What do you mean by "generated" ? There's hmm ... 3 ways I can think of to create tiddlers, one of which has tiddler-collision built-in. If you use that (ActionCreateTiddlerWidget) then it will automatically make a new name if there is an existing name.
The other approach would be to check for the existence of a tiddler, and skip creating it, perhaps making a report so you can handle it per case.
I'd go with the shadow tiddler approach.
Safety checks rather than actual prevention of overwrite might, yeah if the circumstances allow. Thanks again.<:-)
Since you're filling in forms, the form could hide the "Submit" button if the to-be-generated tiddler exists and replace it with a warning message.
<table>
<$list filter="...">
<tr><td>{{!!title}}</td><td><$edit-text field=foo/></td></tr>
</$list>
</table>
You could put a nested list inside the current list that checks for the prior existence and shows only link if it exists but shows the edit fields if it doesn't.
Yeah, thanks.... but if tiddlers are individually shadowified then they're not protected are they?
I mean isn't a plugin at risk of being overwritten if one uses the same title?
Or is a full page reload required for it to actually be saved as overwritten?
Plus... how would I shadowify tiddlers on an individual basis anyway without a lot of effort?
BTW I just got an idea; would it be possible to shadowify only fields, i.e the title fields!?
I mean isn't a plugin at risk of being overwritten if one uses the same title?Yes ... That's a feature, by design. ...
If you create a new plugin, a full page reload will be needed, that the plugin will be activated. ... Overwriting a plugin TEXT tiddler will be active immediately. Overwriting code tiddlers will need a restart.
Code = "application/javascript" type, or what does actually "code tiddler" mean? Wikitext is text, right?
PMario wrote:I mean isn't a plugin at risk of being overwritten if one uses the same title?Yes ... That's a feature, by design. ...But so it wouldn't make sense to shadowify individual tiddlers then. Instead have to be put into some container tiddler (really a plugin).
This means I cannot create a tiddler and spontaneously decide to "protect" it and then go on to deal with another tiddler.
You ask "How can I ensure a tiddler is not overwritten" but if it is and you know it has being and you can recover it then do you have what you need?