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

2016-04-27 Thread The Bo
Hey Mat,

it prevents a tiddler to be saved but it doesn't work for the tiddler 
$:/status/UserName because the tiddler is deleted after saving. So there is 
no "_canonical_uri" set for the tiddler.

@Jeremy
Ok so that solution is a dead end. Do you have another idea?

Regards,
The Bo
Am Freitag, 22. April 2016 17:32:49 UTC+2 schrieb Mat:
>
> Ok, I got this to work (copied on Jeremys earlier instructions)
>
> I put this in one tiddler
>
> title: $:/core/save/all
>
> \define saveTiddlerFilter()
> [is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] 
> -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] 
> -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[YOURTIDDLER]] 
>  +[sort[title]] $(publishFilter)$
> \end
>
>- {{$:/core/templates/tiddlywiki5.html}}
>
>
> ...and this in another
>
> title: MyButton
>
>  <$button>
> <$action-sendmessage $message="tm-download-file" $param=
> "" filename="index.html"/>
> Special Save
> 
>
> Comically, I forgot to change the $param so left it with that dummy name.
>
> This saves everything except the marked pink.
>
> <:-)
>

-- 
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/4b88e765-fe09-42a4-8734-2fe649aa1edf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-04-22 Thread Mat
Ok, I got this to work (copied on Jeremys earlier instructions)

I put this in one tiddler

title: $:/core/save/all

\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] 
-[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] 
-[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[YOURTIDDLER]] 
 +[sort[title]] $(publishFilter)$
\end
{{$:/core/templates/tiddlywiki5.html}}

...and this in another

title: MyButton

 <$button>
<$action-sendmessage $message="tm-download-file" $param=
"" filename="index.html"/>
Special Save


Comically, I forgot to change the $param so left it with that dummy name.

This saves everything except the marked pink.

<:-)

-- 
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/dbd64fc9-cb32-4b19-84cf-2c1a534904a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-04-22 Thread The Bo
Hi Mat,

thank you! It seems like this will help to create a seperated readonly 
wiki. But I can't figure out how to implement it to solve this issue

Regards,
The Bo

Am Donnerstag, 21. April 2016 16:15:56 UTC+2 schrieb Mat:
>
> Hi Bo. You should check out this reply 
>  
> from Jeremy in an earlier thread. I believe it is exactly what you're 
> looking for.
>
> <:-)
>
>
> On Thursday, April 21, 2016 at 1:06:26 PM UTC+2, 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/778cf5c0-88eb-4735-95b0-9dca39a99f02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-04-21 Thread Mat
Hi Bo. You should check out this reply 
 from 
Jeremy in an earlier thread. I believe it is exactly what you're looking 
for.

<:-)


On Thursday, April 21, 2016 at 1:06:26 PM UTC+2, 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/2402b728-11d5-4c50-a231-ef0a1881049e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.