Re: [tw5] Sending tm-save-wiki while running as WebServer and avoiding the download dialog

2021-11-24 Thread andres....@gmail.com
Based what you said, I took a sojourn into private mode and confirmed that 
I was probably logged in without realizing it when I tested this setup. 
Roger on everything you said, then. I probably should just separate it into 
two wikis, which I had been thinking about anyway.

On Wednesday, November 24, 2021 at 4:59:01 PM UTC jeremy...@gmail.com wrote:

> Write access is all-or-nothing, so if you grant write access to anonymous 
> users they will be able to change anything, not just the tags of interest.
>
> It might be possible to modify $:/config/SyncFilter so that only the 
> tagged tiddlers are synced, but at the moment that’s a per-wiki setting 
> that would be shared between all users. That could be worked around by 
> using the `includeWiki` mechanism to make a clone of the wiki with 
> different settings, and then have anon and signed in users access the 
> system through different URLs.
>
> By the way, under Node.js there’s no need to send the tm-save-wiki 
> message; changes are synced back to the server automatically. Sending the 
> message just engages the usual saver mechanism as in the single file 
> edition.
>
> Best wishes
>
> Jeremy
>
>
> On 24 Nov 2021, at 16:43, andres@gmail.com  
> wrote:
>
> OK, let me preface this by saying that I am trying to selectively get 
> around the read-only mode on my wiki. 
> I usually run my main instance with anon access for readers and 
> authenticated for writers. It's great and does the job.
> But, I want to be able to allow changes by anons for *some* tiddlers. 
> specifically, I want users to be able to click a button which does an 
> ActionSendMessage of tm-add-tag or tm-remove-tag. But this button only 
> shows up in some tiddlers based on their tags.
> Now, I did add another sendmessage of tm-save-wiki to that button which 
> *does* save the changed tiddler. Unfortunately, i also triggers the 
> download dialog for the html file which is undesirable.  
>
> Is there any way I can force a save without getting that dialog?
> Is there a better way I can do what I am trying to do?
>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/545dc38f-4f8e-4652-8706-8aae21b7b42fn%40googlegroups.com
>  
> 
> .
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6f3f8579-2794-417f-a52d-a3b6b39b62d2n%40googlegroups.com.


Re: [tw5] Sending tm-save-wiki while running as WebServer and avoiding the download dialog

2021-11-24 Thread Jeremy Ruston
Write access is all-or-nothing, so if you grant write access to anonymous users 
they will be able to change anything, not just the tags of interest.

It might be possible to modify $:/config/SyncFilter so that only the tagged 
tiddlers are synced, but at the moment that’s a per-wiki setting that would be 
shared between all users. That could be worked around by using the 
`includeWiki` mechanism to make a clone of the wiki with different settings, 
and then have anon and signed in users access the system through different URLs.

By the way, under Node.js there’s no need to send the tm-save-wiki message; 
changes are synced back to the server automatically. Sending the message just 
engages the usual saver mechanism as in the single file edition.

Best wishes

Jeremy


> On 24 Nov 2021, at 16:43, andres@gmail.com  
> wrote:
> 
> OK, let me preface this by saying that I am trying to selectively get around 
> the read-only mode on my wiki. 
> I usually run my main instance with anon access for readers and authenticated 
> for writers. It's great and does the job.
> But, I want to be able to allow changes by anons for some tiddlers. 
> specifically, I want users to be able to click a button which does an 
> ActionSendMessage of tm-add-tag or tm-remove-tag. But this button only shows 
> up in some tiddlers based on their tags.
> Now, I did add another sendmessage of tm-save-wiki to that button which does 
> save the changed tiddler. Unfortunately, i also triggers the download dialog 
> for the html file which is undesirable.  
> 
> Is there any way I can force a save without getting that dialog?
> Is there a better way I can do what I am trying to do?
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/545dc38f-4f8e-4652-8706-8aae21b7b42fn%40googlegroups.com
>  
> .

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/27A9CC0E-86DA-445D-B9A7-1B43994BECF0%40gmail.com.


[tw5] Sending tm-save-wiki while running as WebServer and avoiding the download dialog

2021-11-24 Thread andres....@gmail.com
OK, let me preface this by saying that I am trying to selectively get 
around the read-only mode on my wiki. 
I usually run my main instance with anon access for readers and 
authenticated for writers. It's great and does the job.
But, I want to be able to allow changes by anons for *some* tiddlers. 
specifically, I want users to be able to click a button which does an 
ActionSendMessage of tm-add-tag or tm-remove-tag. But this button only 
shows up in some tiddlers based on their tags.
Now, I did add another sendmessage of tm-save-wiki to that button which 
*does* save the changed tiddler. Unfortunately, i also triggers the 
download dialog for the html file which is undesirable.  

Is there any way I can force a save without getting that dialog?
Is there a better way I can do what I am trying to do?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/545dc38f-4f8e-4652-8706-8aae21b7b42fn%40googlegroups.com.