Re: [tw] [TW5] Prevent a certain tiddler to be saved

2016-04-27 Thread Jeremy Ruston
Hi Bo

I think you may need to pull back and describe your overall goals here. Your 
original post included this idea:

> My idea was to set _canonical_uri for the $:/status/UserName to a lokal 
> .tid-file (username.tid) so that the username is transcluded by that file.

The trouble is that _canonical_uri only works in certain circumstances, and 
when it does, it works asynchronously. I don’t think you’ll be able to get this 
to work in the way that you describe. The code that reads the username from 
that tiddler doesn’t know how to resolve the _canonical_uri field, and as I 
say, it’s synchronous, so couldn’t work anyway.

Best wishes

Jeremy

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CE30A30F-D801-4334-A55E-63A96AD81509%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Prevent a certain tiddler to be saved

2016-04-22 Thread Jeremy Ruston
Hi Bo

> What should the plugin look like and how do I have to implement it?

The solution I was proposing there would involve writing some JavaScript, so it 
may not be a good way to go.

Best wishes

Jeremy

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4DB294DC-DFD4-4A54-B804-9695EC1E5A09%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Prevent a certain tiddler to be saved

2016-04-21 Thread The Bo
Hey Jeremy,

Thank you for your support!

I'm using the standalone html file.
What should the plugin look like and how do I have to implement it?
In fact I think I'm not expierenced enough to create an own plugin.

Regards,
The Bo

Am Donnerstag, 21. April 2016 13:20:20 UTC+2 schrieb Jeremy Ruston:
>
> Hi The Bo
>
> One approach would be to construct a plugin that contains your desired 
> value for $:/status/UserName. Then, exclude -[[$:/status/UserName]] 
> from $:/core/save/all. That will ensure that when the tiddler is omitted 
> during the save the shadow will automatically take it’s place.
>
> Are you using the standalone HTML file configuration or Node.js?
>
> Best wishes
>
> Jeremy.
>
> On 21 Apr 2016, at 12:06, The Bo  wrote:
>
> Hello Community,
>
> right now I'm looking for a way to prevent a certain tiddler to be saved. 
>
> Cases:
> 1. Tiddler $:/status/UserName
> 2. a regular Tiddler (e.g. GettingStarted)
>
> My idea was to set _canonical_uri for the $:/status/UserName to a lokal 
> .tid-file (username.tid) so that the username is transcluded by that file.
> After that I saved the wiki and it is working as suggested as long as I 
> save further changes.
>
> I allready tried to modify the $:/core/save/all with 
> -[[$:/status/UserName]] but it seems like the tiddler is deleted after 
> saving.
>
> Is there a way to solve this problem? 
>
> Regards,
> The Bo
>
> -- 
> 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+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> 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/49460099-7ba4-4875-85f6-f5ee1447e370%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f47bb5ec-383c-40d8-96f5-8576ef15b6d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Prevent a certain tiddler to be saved

2016-04-21 Thread Jeremy Ruston
Hi The Bo

One approach would be to construct a plugin that contains your desired value 
for $:/status/UserName. Then, exclude -[[$:/status/UserName]] from 
$:/core/save/all. That will ensure that when the tiddler is omitted during the 
save the shadow will automatically take it’s place.

Are you using the standalone HTML file configuration or Node.js?

Best wishes

Jeremy.

> On 21 Apr 2016, at 12:06, The Bo  wrote:
> 
> Hello Community,
> 
> right now I'm looking for a way to prevent a certain tiddler to be saved. 
> 
> Cases:
> 1. Tiddler $:/status/UserName
> 2. a regular Tiddler (e.g. GettingStarted)
> 
> My idea was to set _canonical_uri for the $:/status/UserName to a lokal 
> .tid-file (username.tid) so that the username is transcluded by that file.
> After that I saved the wiki and it is working as suggested as long as I save 
> further changes.
> 
> I allready tried to modify the $:/core/save/all with -[[$:/status/UserName]] 
> but it seems like the tiddler is deleted after saving.
> 
> Is there a way to solve this problem? 
> 
> Regards,
> The Bo
> 
> -- 
> 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 https://groups.google.com/group/tiddlywiki 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/49460099-7ba4-4875-85f6-f5ee1447e370%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/18194219-0918-4645-B7FC-A7632FE1E3C1%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] Prevent a certain tiddler to be saved

2016-04-21 Thread The Bo
Hello Community,

right now I'm looking for a way to prevent a certain tiddler to be saved. 

Cases:
1. Tiddler $:/status/UserName
2. a regular Tiddler (e.g. GettingStarted)

My idea was to set _canonical_uri for the $:/status/UserName to a lokal 
.tid-file (username.tid) so that the username is transcluded by that file.
After that I saved the wiki and it is working as suggested as long as I 
save further changes.

I allready tried to modify the $:/core/save/all with 
-[[$:/status/UserName]] but it seems like the tiddler is deleted after 
saving.

Is there a way to solve this problem? 

Regards,
The Bo

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/49460099-7ba4-4875-85f6-f5ee1447e370%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.