I think how I'd set things up:

Those few tiddlers you want anonymous users to edit, put those in another 
TiddlyWiki, say TiddlyWiki B.  TiddlyWiki A being the one you referenced in 
your OP.

Setup TiddlyWiki A to include TiddlyWiki B.

For tiddlers from TiddlyWiki B, setup an alternative "edit mechanism", i.e. 
a button that pops open that tiddler in a new window that opens TiddlyWiki 
B, with the tiddler from B open for editing.  Maybe a setup so that a user 
can do nothing but edit the specific tiddler (i.e. no access to all the 
other goodies in TiddlyWiki B.  (Using the HTML dialog element 
<https://www.w3schools.com/tags/tag_dialog.asp> in a TiddlyWiki B tiddler, 
you could cover the entire browser page with an editor for the one 
tiddler.  No access to anything else TiddlyWiki B.  The user presses save 
button. )

As an alternative to including TiddlyWiki B tiddlers in TiddlyWiki A, it 
might be better to have iframe's in TiddlyWiki A that show tiddlers from 
TiddlyWiki B and allow editing right there.  Reason: TiddlyWiki A won't 
show the latest and greatest from TiddlyWiki B until TiddlyWiki A is 
restarted.  But if TiddlyWiki A shows TiddlyWiki B in iframe windows, no 
problemo.

On Wednesday, November 24, 2021 at 12:43:44 PM UTC-4 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/de51bd1c-2661-4b7a-8a7d-bae4004e46d9n%40googlegroups.com.

Reply via email to